hariprasad
2017-12-08 10:19:58 UTC
Hi,
I am looking for something like:
getElementByXpath(//html[1]/body[1]/div[1]).innerHTML
I need to get the innerHTML of elements using JS (to use that in Selenium
<http://kosmiktechnologies.com/selenium-training-in-hyderabad/>
WebDriver/Java, since WebDriver can't find it itself), but how?
I could use ID attribute, but not all elements have ID attribute.
*[FIXED]*
I am using jsoup to get it done in Java. That works for my needs.
I am looking for something like:
getElementByXpath(//html[1]/body[1]/div[1]).innerHTML
I need to get the innerHTML of elements using JS (to use that in Selenium
<http://kosmiktechnologies.com/selenium-training-in-hyderabad/>
WebDriver/Java, since WebDriver can't find it itself), but how?
I could use ID attribute, but not all elements have ID attribute.
*[FIXED]*
I am using jsoup to get it done in Java. That works for my needs.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/f043bc66-2ab1-4d8c-a505-baa21977aa44%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/f043bc66-2ab1-4d8c-a505-baa21977aa44%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.