c# - FindElements returns 0 event Text property has value -
i'm trying go through cells in table
var rows = d.findelementsbyxpath(@"//table[@id='table2']/tbody/tr"); foreach (iwebelement r in rows) { var cells = r.findelements(by.name("td")); }
the cells collection empty see text values cells in row text property. missing ? see cells in browser. i'm using chromedriver.
by.name
looking name
attribute, example
<a id="id" name="name">
uses:
findelements(by.name("name"));
to locate tag use by.tagname
var cells = r.findelements(by.tagname("td"));
Comments
Post a Comment