Created
July 3, 2016 16:44
-
-
Save rinchik/371e168cd8075c4c4f4e2e8830f08c5b to your computer and use it in GitHub Desktop.
Method that iterates over cells in Capital One investment Transaction History.
This file contains hidden or 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 process_transactions(self): | |
| print "Processing transactions ...." | |
| transaction_table = self.driver.find_element_by_css_selector('#TransactionHistoryList tbody') | |
| rows = transaction_table.find_elements_by_css_selector('tr') | |
| for row in rows: | |
| cells = row.find_elements_by_css_selector('td') | |
| print cells[0].text + ' ' + cells[2].text + ' ' + cells[6].text | |
| print "Done." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment