Selenium : Unable to read text using getText() or getAttribute("innerText")

If you are stuck at a point where you can't read text of an object using getText() or even getAttribute("innerText").

getText() returns innerText so there is no difference in both these functions.

Your input field does not have any inner Text. Then, how would you access it?


You need to check one out of these:



One out of these should work.

No comments :

Post a Comment