|
1 | 1 | let webdriverio |
2 | 2 |
|
3 | | -const assert = require('assert') |
4 | | -const path = require('path') |
5 | | - |
6 | | -const Helper = require('@codeceptjs/helper') |
7 | | -const promiseRetry = require('promise-retry') |
8 | | -const stringIncludes = require('../assert/include').includes |
9 | | -const { urlEquals, equals } = require('../assert/equal') |
10 | | -const store = require('../store') |
11 | | -const { debug } = require('../output') |
12 | | -const { empty } = require('../assert/empty') |
13 | | -const { truth } = require('../assert/truth') |
14 | | -const { xpathLocator, fileExists, decodeUrl, chunkArray, convertCssPropertiesToCamelCase, screenshotOutputFolder, getNormalizedKeyAttributeValue, modifierKeys } = require('../utils') |
15 | | -const { isColorProperty, convertColorToRGBA } = require('../colorUtils') |
16 | | -const ElementNotFound = require('./errors/ElementNotFound') |
17 | | -const ConnectionRefused = require('./errors/ConnectionRefused') |
18 | | -const Locator = require('../locator') |
19 | | -const { highlightElement } = require('./scripts/highlightElement') |
20 | | -const { focusElement } = require('./scripts/focusElement') |
21 | | -const { blurElement } = require('./scripts/blurElement') |
22 | | -const { dontSeeElementError, seeElementError, seeElementInDOMError, dontSeeElementInDOMError } = require('./errors/ElementAssertion') |
23 | | -const { dontSeeTraffic, seeTraffic, grabRecordedNetworkTraffics, stopRecordingTraffic, flushNetworkTraffics } = require('./network/actions') |
24 | | -const WebElement = require('../element/WebElement') |
| 3 | +import assert from 'assert' |
| 4 | +import path from 'path' |
| 5 | + |
| 6 | +import Helper from '@codeceptjs/helper' |
| 7 | +import promiseRetry from 'promise-retry' |
| 8 | +import { includes as stringIncludes } from '../assert/include.js' |
| 9 | +import { urlEquals, equals } from '../assert/equal.js' |
| 10 | +import store from '../store.js' |
| 11 | +import output from '../output.js' |
| 12 | +const { debug } = output |
| 13 | +import { empty } from '../assert/empty.js' |
| 14 | +import { truth } from '../assert/truth.js' |
| 15 | +import { xpathLocator, fileExists, decodeUrl, chunkArray, convertCssPropertiesToCamelCase, screenshotOutputFolder, getNormalizedKeyAttributeValue, modifierKeys } from '../utils.js' |
| 16 | +import { isColorProperty, convertColorToRGBA } from '../colorUtils.js' |
| 17 | +import ElementNotFound from './errors/ElementNotFound.js' |
| 18 | +import ConnectionRefused from './errors/ConnectionRefused.js' |
| 19 | +import Locator from '../locator.js' |
| 20 | +import { highlightElement } from './scripts/highlightElement.js' |
| 21 | +import { focusElement } from './scripts/focusElement.js' |
| 22 | +import { blurElement } from './scripts/blurElement.js' |
| 23 | +import { dontSeeElementError, seeElementError, seeElementInDOMError, dontSeeElementInDOMError } from './errors/ElementAssertion.js' |
| 24 | +import { dontSeeTraffic, seeTraffic, grabRecordedNetworkTraffics, stopRecordingTraffic, flushNetworkTraffics } from './network/actions.js' |
| 25 | +import WebElement from '../element/WebElement.js' |
25 | 26 |
|
26 | 27 | const SHADOW = 'shadow' |
27 | 28 | const webRoot = 'body' |
|
0 commit comments