forked from karatelabs/karate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path00.feature
61 lines (42 loc) · 1.47 KB
/
00.feature
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Feature:
Background:
* driver serverUrl + '/00'
* def dimensions = karate.get('dimensions')
* if (dimensions) driver.dimensions = dimensions
* def skipSlowTests = karate.properties['skip.slow.tests']
Scenario:
# driver.send() (has to be first)
# * if (driverType == 'chrome') karate.call('12.feature')
# driver.url | driver.title | waitForUrl() | refresh() | back() | forward() | driver.dimensions
# * call read('01.feature')
# waitFor() | waitForText() | waitForEnabled()
* call read('02.feature')
# script() | waitUntil()
* call read('03.feature')
# cookies
* if (driverType != 'safaridriver') karate.call('04.feature')
# driver.intercept
* if (driverType == 'chrome') karate.call('05.feature')
# position()
* call read('06.feature')
# input() | value() | text() | html()
* call read('07.feature')
# switchFrame()
* call read('08.feature')
# friendly locators
* call read('09.feature')
# element position
* call read('10.feature')
* if (driverType == 'playwright') karate.abort()
# switchPage()
* if (driverType == 'chrome' && !skipSlowTests) karate.call('11.feature')
# switchPage() with external URLs
# * if (driverType == 'chrome' && !skipSlowTests) karate.call('13.feature')
# survive Target.detachedFromTarget with nested iframes
* if (driverType == 'chrome' && !skipSlowTests) karate.call('14.feature')
# xpath locators
* call read('15.feature')
# image comparison
* if (!skipSlowTests) karate.call('16.feature')
# switch to root session on page close
* call read('17.feature')