hi Benardo,
could you please help me understand this a little bit more. If I
create a page like this:
from
pyccuracy.page import Page
class SearchPage(Page):
url = '/'
def register(self):
self.quick_register("Search Results Entry",
"div.search_result")
How do I then validate that there are 10 entries matching this
selector? I would like to be able to do something like:
...
And I see 10 "Search Results Entry" div elements
And I see 1st "Search Results Entry" div contains "First search
result"
...
Now I'm trying to figure out how do I code an action that would count
number of entries. I do see a lot of methods in SeleniumBrowserDriver
that work with a single element but no methods that work with a
collection of elements. If you can point me to the browser driver or
selenium method that could be used to get a collection of elements
from the page matching a given selector and iterate over it - would be
fantastic.
Sorry if that is a lame question, it could be just a lack of Selenium
experience.