Skip to main content
Han Nav (REPL) 님이 Test Automation Trailblazers에 글을 올렸습니다

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개
  1. 2020년 12월 14일 오전 7: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