Skip to content

Commit 6205ed0

Browse files
committed
Update the Automated Visual Testing ReadMe
1 parent 55556bd commit 6205ed0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/visual_testing/ReadMe.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
### Automated Visual Testing (Layout Testing)
1+
### Automated Visual Testing (Layout Change Detection)
22

3-
Automated visual testing can help you determine when something has changed the layout of a web page. Rather than comparing screenshots, a more effective way is to detect layout differences by comparing HTML tags and properties. If a change is detected, it could mean that something broke on the webpage, or possibly something harmless like a website redesign or dynamic content.
3+
Automated visual testing can help you detect when something has changed the layout of a web page. Rather than comparing screenshots, a more effective way is to detect layout differences by comparing HTML tags and properties. If a change is detected, it could mean that something broke on the webpage, or possibly something harmless like a website redesign or dynamic content.
44

55
To handle automated visual testing, SeleniumBase uses the ``self.check_window()`` method, which can set visual baselines for comparison and then compare the latest versions of web pages to the existing baseline.
66

@@ -11,7 +11,7 @@ The first time a test calls ``self.check_window()`` with a unique "name" paramet
1111
* tags_level2.txt -> HTML tags + attributes from the window
1212
* tags_level3.txt -> HTML tags + attributes/values from the window
1313

14-
After the first run of ``self.check_window()``, it will compare the HTML tags of the latest window to the one from the initial baseline run.
14+
After the first time ``self.check_window()`` is called, later calls will compare the HTML tags and properties of the latest window to the ones from the first call (<i>or to the ones from the call when the baseline was last reset</i>).
1515

1616
Here's an example call:
1717
```

0 commit comments

Comments
 (0)