power_settings_new

is there any work around for edge driver click issue?

by
0 votes
3.1k views

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?

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.

1 Answer

by
selected by
0 votes
 
Best answer

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);
add
...