[enter image description here][1]
This is the HTML tag for the element. [1]: https://i.stack.imgur.com/8SjU8.jpg
I tried String A = Element.getText() to capture the value but it doesn't capture the text. I tried with
String A = element.getAttribute("value"); but still no text capture.
I tried with javascript executor also
String pageText = js.executeScript("return document.documentElement.innerText;",AdNum).toString();
This is also not capturing the text though it executes the script.
Aucun commentaire:
Enregistrer un commentaire