Join 500+ Software Testing professionals. Solve problem and get your problem solved. Register Now!

0
word around for edge driver click

Solved 1 Answers 2807 Views Selenium
0 1

We are facing below issue on microsoft edge driver.

org.openqa.selenium.WebDriverException: Element is obscured (WARNING: The server did not provide any stacktrace information)

Issue is still open: https://connect.microsoft.com/IE/feedback/details/1854764/edge-driver-clicking-displayed-element-returning-as-obscured

Is there any work around for this issue?

1 Answer

0
Best answer
0

You can use JavaScript to click on an element.

// Assume driver is a valid WebDriver instance that

// has been properly instantiated elsewhere.
WebElement element = driver.findElement(By.id("gbqfd"));
JavascriptExecutor executor = (JavascriptExecutor)driver;
executor.executeScript("arguments[0].click();", element);
answered by
selected by

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
...