Open GoogleCodeExporter opened 8 years ago
imageCount = driver.getCssCount("#Form1 .flag img")
Or
imageCount = driver.findElementsByCssSelector("#Form1 .flag img").Count
Original comment by florentbr
on 14 Apr 2014 at 9:29
Thanks a lot for your quick answer.
Now I want to count in a loop each img for each .flag
It is possible to write a code like driver.getCssCount("#Form1 .flag[" & k & "]
img")
Original comment by religie...@gmail.com
on 15 Apr 2014 at 6:36
Yes it's possible:
For Each ele In wd.findElementsByCssSelector("#Form1 .flag")
Debug.Print ele.findElementsByCssSelector("img").Count
Next
Original comment by florentbr
on 15 Apr 2014 at 11:33
Thanks a lot, it is working well :)
Original comment by religie...@gmail.com
on 16 Apr 2014 at 12:58
Original comment by florentbr
on 8 Sep 2014 at 5:40
Original issue reported on code.google.com by
religie...@gmail.com
on 14 Apr 2014 at 8:48Attachments: