Skip to content

Instantly share code, notes, and snippets.

@hamletbatista
Last active April 2, 2019 20:40
Show Gist options
  • Select an option

  • Save hamletbatista/5760ada81c1694a06f3e5c74503c4f26 to your computer and use it in GitHub Desktop.

Select an option

Save hamletbatista/5760ada81c1694a06f3e5c74503c4f26 to your computer and use it in GitHub Desktop.
#wait for retrival
sleep(5)
coverage_selector = "#yDmH0d > c-wiz:nth-child(20) > div > div.OoO4Vb > span > div > div.y3IDJd.rFZTte.Fx3kmc > content > div.shSP > div > div > div:nth-child(3) > content > div"
try:
await page.waitForSelector(coverage_selector)
await page.click(coverage_selector)
except:
pass #skip click on timeout exception
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment