Untitled
unknown
plain_text
2 years ago
1.4 kB
2
Indexable
Never
# Generated by Selenium IDE import pytest import time import json from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.support import expected_conditions from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.desired_capabilities import DesiredCapabilities class TestDocs(): def setup_method(self, method): self.driver = webdriver.Remote(command_executor='http://localhost:4444/wd/hub', desired_capabilities=DesiredCapabilities.CHROME) self.vars = {} def teardown_method(self, method): self.driver.quit() def test_docs(self): self.driver.get("https://my.wweb.com/resources/") self.driver.set_window_size(1920, 1053) self.driver.find_element(By.LINK_TEXT, "Documentation").click() self.driver.find_element(By.CSS_SELECTOR, ".menu-item:nth-child(7) > .menu-link > .menu-title").click() self.driver.find_element(By.CSS_SELECTOR, ".menu-item:nth-child(8) > .menu-link > .menu-title").click() self.driver.find_element(By.CSS_SELECTOR, ".menu-item:nth-child(10) > .menu-link > .menu-title").click() self.driver.find_element(By.CSS_SELECTOR, ".show > .menu-item:nth-child(2) .menu-title").click() self.driver.find_element(By.CSS_SELECTOR, ".btn-label").click()