This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### Keybase proof | |
| I hereby claim: | |
| * I am moonzlo on github. | |
| * I am moonz (https://keybase.io/moonz) on keybase. | |
| * I have a public key ASB8tJsmYi6Cf7M0uJMfSH04imnSmnORix9L6-fABPFsFwo | |
| To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pytest | |
| from selenium import webdriver | |
| from selenium.webdriver.common.by import By | |
| from selenium.webdriver.support.ui import WebDriverWait | |
| from selenium.webdriver.support import expected_conditions as EC | |
| import time | |
| import math | |
| links = [ # Список ссылок на тестируемые страницы |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @contextmanager | |
| def selen(driver_patch: str, profile_patch: str, config='windows') -> webdriver.Chrome: | |
| """ | |
| Самый удобный метод использования веб драйвера =) | |
| :param driver_patch: str: patch to chromedriver(exe) | |
| :param profile_patch: str: the path to the folder storing cookies | |
| :param config: str: operating system | |
| :return: webdriver.Chrome | |
| """ |
OlderNewer