Created
November 20, 2016 15:23
-
-
Save alexpodoff/86655439f44f480beda6cdbc61c75778 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_contact_list(self): | |
wd = self.app.wd | |
contacts = [] | |
rows = wd.find_elements_by_name("entry") | |
self.contact_page() | |
for row in rows: | |
cells = row.find_elements_by_tag_name("td") | |
id = cells[0].find_element_by_name("selected[]").get_attribute("value") | |
contacts.append(Contact(id=id)) | |
return contacts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment