2020-01-31 17:17:14 +08:00
|
|
|
from seleniumbase import BaseCase
|
|
|
|
|
|
|
|
|
2021-03-11 06:27:52 +08:00
|
|
|
class VisualLayoutTests(BaseCase):
|
2020-01-31 17:17:14 +08:00
|
|
|
def test_xkcd_layout_change(self):
|
2021-05-04 10:39:14 +08:00
|
|
|
self.open("https://xkcd.com/554/")
|
2020-01-31 17:17:14 +08:00
|
|
|
print('\nCreating baseline in "visual_baseline" folder.')
|
|
|
|
self.check_window(name="xkcd_554", baseline=True)
|
|
|
|
# Change height: (83 -> 130) , Change width: (185 -> 120)
|
|
|
|
self.set_attribute('[alt="xkcd.com logo"]', "height", "130")
|
|
|
|
self.set_attribute('[alt="xkcd.com logo"]', "width", "120")
|
|
|
|
self.check_window(name="xkcd_554", level=0)
|