I have a table, and want to get the value of name attribute.
THe below code did not work.
I put a dot ( @.= ) which may work as a regular expression. It may be any attribute- that is my intention.
driver.findElement(By.xpath("//*[@.='myid']" )).getAttribute("name")
<input name="tbox" id="myid">
|