How to use the @flood/element.By.attr function in @flood/element

To help you get started, we’ve selected a few @flood/element examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github flood-io / element / smoke / test-scripts / googling-test-data.pass.ts View on Github external
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()
	})
}