Skip to content

Instantly share code, notes, and snippets.

@shriyaRam
Created June 23, 2020 09:12
Show Gist options
  • Save shriyaRam/66ae85b560134f816615c4be4960bd28 to your computer and use it in GitHub Desktop.
Save shriyaRam/66ae85b560134f816615c4be4960bd28 to your computer and use it in GitHub Desktop.
let connect = '#navExpand > ul > li > a'
await page.waitForSelector(connect)
let connectlink = await page.$$eval(connect, am => am.filter(e => e.href).map(e => e.href))
await page.goto(connectlink[6]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment