File tree 1 file changed +11
-0
lines changed
python/robot-framework/tests/login_tests
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,17 @@ Valid Login
13
13
${username } = Setup User
14
14
Input Username ${username }
15
15
Input Password secret_sauce
16
+
17
+ # Capture snapshot with selective regions
18
+ ${username_element } Get Webelements id:user-name
19
+ ${password_element } Get Webelements id:password
20
+ # Ignore all changes on ${username_element}
21
+ ${ignore_username } = Visual Ignore Element ${username_element } diffing_options={}
22
+ # Only checks for style changes on ${password_element}
23
+ ${ignore_password } = Visual Ignore Element ${password_element } diffing_options={"style":True}
24
+ ${ignore_regions } = Create List ${ignore_username } ${ignore_password }
25
+ Visual Snapshot Login Page capture_dom=True ignore_regions=${ignore_regions } diffing_method=BALANCED
26
+
16
27
Submit Credentials
17
28
Welcome Page Should Be Open
18
29
Visual Snapshot Valid Login capture_dom=True
You can’t perform that action at this time.
0 commit comments