+2 votes
1.6k views
in Software Testing by
i am trying to get a hidden value from webpage using Xpath but not working ,please tell me the solution .

Thanks!

1 Answer

+1 vote
by Expert (4.6k points)

You can try java script executer like this

             JavascriptExecutor jse=(JavascriptExecutor)this.driver;

String script = "return document.getElementById('hidden_element_id_here').innerHTML";

jse.executeScript(script);

by (110 points)
Thanks Dear its working.

Not a Member yet?

Ask to Folks Login

My Account

Your feedback is highly appreciated