-
Notifications
You must be signed in to change notification settings - Fork 508
news
ricobl edited this page Dec 31, 2010
·
4 revisions
- Issue #11: improve find's methods to return all/first/last elements
Now finder methods returns a QueryElements object that contains a list of all found elements.
There are four methods to find elements with a QueryElements object:
.all() - to find all elements
browser.find_by_name('name').all()
.first() - to find first element
browser.find_by_name('name').first()
.last() - to find last element
browser.find_by_name('name').last()
And additionally, using index
browser.find_by_name('name')[1]
An id should be unique in a web page, so find_by_id().all() method always returns a list with a single element.
- suport to firefox selenium 2 driver
- suport to zope test browser
- navigating with Browser.visit
- get the title of the visited page
- get the html content of the visited page
- visited page's url can be accessed by the url attribute
- finding first element by tag, xpath, css selector, name and id
- find first link by xpath or text
- interacting with forms: text input, file, radio and check button
- verifying if element is visible or invisible
- executing and evaluating javascript
- debug with save and open page