Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const settings: TestSettings = {
loopCount: ENV.FLOOD_LOAD_TEST ? -1 : 1,
clearCache: false,
clearCookies: false,
screenshotOnFailure: true,
actionDelay: 3,
stepDelay: 3,
}
interface Row {
query: string
href: string
count: number
}
TestData.fromCSV('googling-test-data.pass/googling-test-data.csv').shuffle()
export default async () => {
step('Google Search', async (browser: Browser, row: Row) => {
assert.ok(row.query, 'row.query is set')
row.query = String(row.query)
assert.ok(row.href, 'row.href is set')
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'))