How Can I Get Text From Display None Element Using Java Selenium
I need to get text of the element in an image but that element is not displaying on a web page.
Solution 1:
You can try something like this, and give id to your element
JavascriptExecutor executor = (JavascriptExecutor)driver;
Stringtext= executor.executeScript("document.getElementById('someID').innerHTML");
as earlier @Andreas mention be more descriptive. Good luck. Hope it helps
Post a Comment for "How Can I Get Text From Display None Element Using Java Selenium"