Skip to content

Instantly share code, notes, and snippets.

@shriyaRam
Created June 23, 2020 09:16
Show Gist options
  • Save shriyaRam/2a7d6ff9429725e5bc523e7ef94c16df to your computer and use it in GitHub Desktop.
Save shriyaRam/2a7d6ff9429725e5bc523e7ef94c16df to your computer and use it in GitHub Desktop.
await page.waitForSelector('#relay_connector_name')
await page.type('#relay_connector_name', req.body.connectorname);
await page.waitForSelector('#relay_connector_token')
await page.type('#relay_connector_token', req.body.appid);
await page.keyboard.press('Enter').then(async () => { await page.waitForNavigation({waitUntil: 'load'})}).catch(()=>{console.log("FAIL")});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment