Skip to content

Instantly share code, notes, and snippets.

@thepycoach
Last active October 18, 2020 23:57
Show Gist options
  • Select an option

  • Save thepycoach/eaf8057666eabd2b13e53f42f33160ca to your computer and use it in GitHub Desktop.

Select an option

Save thepycoach/eaf8057666eabd2b13e53f42f33160ca to your computer and use it in GitHub Desktop.
for sport in sport_title:
# selecting only football
if sport.text == 'Football':
parent = sport.find_element_by_xpath('./..')
grandparent = parent.find_element_by_xpath('./..')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment