I have a question. I have elements something like this:
<a> element with id = someGenerated Some: Same: 0: name
<a> element with id = someGenerated Some: Same: 0: last name
<a> element with id = someGenerated Some: Same: 1: name
<a> element with id = someGenerated Some: Same: 1: last name
I need a CSS selector to get names. The problem is that I do not know how to get this. I tried a[id*='Some:Same'] - it returned all the <a> elements. After I get the elements whose id ends with a name. But I do not like this idea. I think this can be done using another selector.
css css-selectors webdriver
TarasLviv Aug 28 '12 at 8:55 2012-08-28 08:55
source share