-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconstants.ts
More file actions
41 lines (35 loc) · 1.09 KB
/
constants.ts
File metadata and controls
41 lines (35 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import { Browser } from '../deps.ts'
const driverBrowserList: Array<string> = ['chrome', 'firefox', 'safari', 'edge']
const driverBrowsers: Record<string, string> = {
chrome: Browser.CHROME,
firefox: Browser.FIREFOX,
safari: Browser.SAFARI,
edge: Browser.EDGE,
}
const seleniumExceptions: Record<string, string> = {
WebDriverError: 'General WebDriver error.',
NoSuchElementError: 'The requested element could not be found in the DOM.',
TimeoutError:
'The operation did not complete within the specified timeout.',
SessionNotCreatedError: 'A new session could not be created.',
ScriptTimeoutError: 'A script execution timeout occurred.',
StaleElementReferenceError:
'The referenced element is no longer present in the DOM.',
ElementNotVisibleError:
'The referenced element is present in the DOM but is not visible.',
}
const caseStatus: Record<string, string> = {
passed: 'passed',
failed: 'failed',
}
const dataResultType: Record<string, string> = {
object: 'object',
function: 'function',
}
export {
caseStatus,
dataResultType,
driverBrowserList,
driverBrowsers,
seleniumExceptions,
}