Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
step('click first result', async (browser: Browser, data: any) => {
let firstResultLink = await browser.findElement(By.attr('a', 'href', data.href))
await firstResultLink.click()
await browser.waitForNavigation()
await browser.takeScreenshot()
})
}