Skip to content

Instantly share code, notes, and snippets.

@rinchik
Created July 3, 2016 16:44
Show Gist options
  • Select an option

  • Save rinchik/371e168cd8075c4c4f4e2e8830f08c5b to your computer and use it in GitHub Desktop.

Select an option

Save rinchik/371e168cd8075c4c4f4e2e8830f08c5b to your computer and use it in GitHub Desktop.
Method that iterates over cells in Capital One investment Transaction History.
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