make screenshots
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
from selenium.webdriver.common.by import By
|
from selenium.webdriver.common.by import By
|
||||||
|
from selenium.webdriver import ActionChains
|
||||||
from screenshot_tests.utils.screenshots import TestCase
|
from screenshot_tests.utils.screenshots import TestCase
|
||||||
import time
|
import time
|
||||||
|
|
||||||
@@ -15,6 +15,17 @@ class TestExample(TestCase):
|
|||||||
|
|
||||||
self.check_by_screenshot(None, full_page=True, action=action)
|
self.check_by_screenshot(None, full_page=True, action=action)
|
||||||
|
|
||||||
|
def test_mouse_move(self):
|
||||||
|
self.driver.get("https://s57map.ivazh.ru/")
|
||||||
|
|
||||||
|
def action():
|
||||||
|
time.sleep(2)
|
||||||
|
a = ActionChains(self.driver)
|
||||||
|
a.move_by_offset(100, 200)
|
||||||
|
a.perform()
|
||||||
|
|
||||||
|
self.check_by_screenshot(None, full_page=True, action=action)
|
||||||
|
|
||||||
def test_search_block(self):
|
def test_search_block(self):
|
||||||
self.driver.get("https://s57.ivazh.ru/styles/r14/#12.13/71.2832/72.13405")
|
self.driver.get("https://s57.ivazh.ru/styles/r14/#12.13/71.2832/72.13405")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user