How Do You Store An Elements Text With Selenium In A Javascript Variable?
I have this html:
Solution 1:
In BrowserMob you can do
var titleText = selenium.getText("//div[@id='flhcd']/h3");
and then use titleText like you would any variable.
Post a Comment for "How Do You Store An Elements Text With Selenium In A Javascript Variable?"