How to use the @flood/element.Key.RETURN 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
assert.notEqual(row.count, undefined, 'row.count is set')

		console.log('data: ', JSON.stringify(row), 'count', row.count)

		console.log('visiting')
		await browser.visit('http://www.google.com/ncr')

		console.log('finding elt')
		let searchInput = await browser.findElement(By.nameAttr('q'))

		console.log('highlighting')
		await browser.highlightElement(searchInput)
		await browser.takeScreenshot()

		console.log('typing')
		await searchInput.sendKeys(row.query, Key.RETURN)

		await browser.wait(Until.titleIs(`${row.query} - Google Search`))
		await browser.takeScreenshot()
	})