Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
4.4k views
in Selenium by
edited by

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 like 0 dislike
by
selected by
 
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);


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...