File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 1
1
*** Settings ***
2
+ # Use Selenium WebDriver and Applitools Eyes with the Ultrafast Grid.
2
3
Library SeleniumLibrary
3
4
Library EyesLibrary runner=web_ufg config=applitools.yaml
4
5
6
+ # Declare setup and teardown routines.
5
7
Test Setup Setup
6
8
Test Teardown Teardown
7
9
10
+
8
11
*** Keywords ***
12
+ # For setup, load the demo site's login page and open Eyes to start visual testing.
9
13
Setup
10
14
Open Browser https://demo.applitools.com Chrome
11
15
Eyes Open
12
16
17
+ # For teardown, close Eyes and the browser.
13
18
Teardown
14
19
Eyes Close Async
15
20
Close All Browsers
16
21
22
+
17
23
*** Test Cases ***
24
+ # This test covers login for the Applitools demo site, which is a dummy banking app.
25
+ # The interactions use typical Selenium WebDriver calls,
26
+ # but the verifications use one-line snapshot calls with Applitools Eyes.
27
+ # If the page ever changes, then Applitools will detect the changes and highlight them in the dashboard.
28
+ # Traditional assertions that scrape the page for text values are not needed here.
18
29
Log into bank account
30
+
31
+ # Verify the full login page loaded correctly.
19
32
Eyes Check Window Login Page Fully
20
33
34
+ # Perform login.
21
35
Input Text id:username applibot
22
36
Input Text id:password I<3VisualTests
23
37
Click Element id:log-in
24
38
25
- Eyes Check Window Main Page Fully Match Level LAYOUT
39
+ # Verify the full main page loaded correctly.
40
+ # This snapshot uses LAYOUT match level to avoid differences in closing time text.
41
+ Eyes Check Window Main Page Fully Match Level LAYOUT
You can’t perform that action at this time.
0 commit comments