Skip to main content

Facing an issue with automating Salesforce Lightning Internal.

I have an element 

public @FindBy(how = How.XPATH, using = "//button[@aria-label=\"Show Navigation Menu\"]") WebElement chevrondown;

 

Im trying to click it waitAndClickElement(chevrondown);

 

And log says 

Successfully clicked on the WebElement: <Proxy element for: DefaultElementLocator 'By.xpath: //button[@aria-label="Show Navigation Menu"]'>

 

However I don not see the Pulldown menu on salesforce which shows as a result of the click

1 Kommentar
  1. 14. Dez. 2020, 07:24
    Hi @Han Nav

    ,

    what I think is happening is that the Selenium click() command does not work here. We are seeing this more and more across the Salesforce app.

    Assuming that you are using Java, please try using a JavaScript click using this command sequence:

    JavascriptExecutor js = (JavascriptExecutor) driver;

    js.executeScript("arguments[0].click();", chevrondown);

    Hope this helps!

    Georg

0/9000