Skip to content

Instantly share code, notes, and snippets.

@serhii73
Created January 31, 2017 08:51
Show Gist options
  • Save serhii73/b7329ce01bf6b391bd97fef6d7a777b6 to your computer and use it in GitHub Desktop.
Save serhii73/b7329ce01bf6b391bd97fef6d7a777b6 to your computer and use it in GitHub Desktop.
for city in all_city:
driver.find_element_by_class_name("network-filter-tag").click()
xpath = "//li[@class='ng-binding ng-scope'][contains(text()," + "'" + city + "'" + ')]'
driver.find_element_by_xpath(xpath).click()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment