You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/visual_testing/ReadMe.md
+41-26Lines changed: 41 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ If you want to use ``self.check_window()`` to compare a web page to a later vers
43
43
44
44
Automated Visual Testing with ``self.check_window()`` is not very effective for websites that have dynamic content because that changes the layout and structure of web pages. For those pages, you're much better off using regular SeleniumBase functional testing, unless you can remove the dynamic content before performing the comparison, (such as by using ``self.ad_block()`` to remove dynamic ad content on a web page).
45
45
46
-
Example usage of ``self.check_window()``:
46
+
Example usage of ``self.check_window()`` with different levels:
47
47
```python
48
48
self.check_window(name="testing", level=0)
49
49
self.check_window(name="xkcd_home", level=1)
@@ -55,37 +55,23 @@ Example usage of ``self.check_window()``:
55
55
self.check_window(name="helloworld", level=3)
56
56
```
57
57
58
-
Full example test:
58
+
Here's an example where clicking a button makes a hidden element visible:
0 commit comments