Tuesday 9 February 2016

How to identify a webelement if that doesnt have any attributes

How to identify a web element if that doesn't have any attributes:
==================================================

Even though if the web element doesn't have any attributes still we can identify the web element.

Let us consider a sample example


Q) <div id="identifier-shown">
     <input >
     <input >------>identify this element

xpath:
---------

//div[@id='id="identifier-shown']/input[2]

No comments:

Post a Comment