Open GoogleCodeExporter opened 9 years ago
Ids are required to be unique. Having doubles kind of breaks the purpose of an
id and usually reflects a very poor implementation of the website.
It's still possible to deal with it, either by index or by making sure an
attribute is present:
value =
driver.findElementByCssSelector("#singleFinalPrice[content]").getAttribute("cont
ent")
or :
value =
driver.findElementByCssSelector("#singleFinalPrice:nth-child(0)").getAttribute("
content")
Original comment by florentbr
on 16 Mar 2015 at 10:52
Original issue reported on code.google.com by
and...@thefigueroas.info
on 13 Mar 2015 at 10:20Attachments: