How to use the @flood/element.Device.iPadLandscape 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 / puppeteer-access.pass.ts View on Github external
import { step, TestSettings, Until, By, MouseButtons, Device, Browser } from '@flood/element'
import * as assert from 'assert'

export const settings: TestSettings = {
	loopCount: 1,
	device: Device.iPadLandscape,
	userAgent: 'I AM ROBOT',
	disableCache: true,
	actionDelay: 1,
	stepDelay: 2,
	responseTimeMeasurement: 'step',
}

/**
 * Flood Challenge
 * Version: 1.0
 */
export default () => {
	step('Flood Challenge: Start', async (browser: Browser) => {
		await browser.visit('https://challenge.flood.io')

		const page = browser.page
github flood-io / element / smoke / test-scripts / external-module.pass.ts View on Github external
import { step, TestSettings, Device, Browser } from '@flood/element'
import { dirname } from 'path'
import assert from 'assert'

export const settings: TestSettings = {
	loopCount: 1,
	device: Device.iPadLandscape,
	userAgent: 'I AM ROBOT',
	disableCache: true,
	actionDelay: 1,
	stepDelay: 2,
	responseTimeMeasurement: 'step',
}

/**
 * Flood Challenge
 * Version: 1.0
 */
export default () => {
	step('external module', async (browser: Browser) => {
		assert.ok(dirname('/foo/bar') == '/foo')
		assert.ok(process.cwd().length > 0)
	})
github flood-io / element / examples / flood-challenge.ts View on Github external
import { step, TestSettings, Until, By, Device, Driver } from '@flood/element'
import assert from 'assert'
export const settings: TestSettings = {
	loopCount: 1,
	device: Device.iPadLandscape,
	userAgent: 'I AM ROBOT',
	disableCache: true,
	actionDelay: 1,
	stepDelay: 2,
	responseTimeMeasurement: 'step',
	incognito: true,
}

/**
 * Flood Challenge
 * Version: 1.0
 */
export default () => {
	step('Flood Challenge: Start', async (browser: Driver) => {
		await browser.visit('https://challenge.flood.io')