|
1 | 1 | # Generated by Selenium IDE
|
2 |
| -import pytest |
3 |
| -import time |
4 | 2 | import json
|
| 3 | +import time |
| 4 | + |
| 5 | +import pytest |
| 6 | + |
5 | 7 | from selenium import webdriver
|
6 |
| -from selenium.webdriver.common.by import By |
7 | 8 | from selenium.webdriver.common.action_chains import ActionChains
|
| 9 | +from selenium.webdriver.common.by import By |
| 10 | +from selenium.webdriver.common.desired_capabilities import DesiredCapabilities |
| 11 | +from selenium.webdriver.common.keys import Keys |
8 | 12 | from selenium.webdriver.support import expected_conditions
|
9 | 13 | from selenium.webdriver.support.wait import WebDriverWait
|
10 |
| -from selenium.webdriver.common.keys import Keys |
11 |
| -from selenium.webdriver.common.desired_capabilities import DesiredCapabilities |
12 |
| - |
13 | 14 |
|
14 |
| -class TestChecks(): |
15 | 15 |
|
16 |
| -def setup_method(self, method): |
17 |
| - self.driver = webdriver.Chrome() |
18 |
| - self.vars = {} |
| 16 | +class TestChecks: |
| 17 | + def setup_method(self, method): |
| 18 | + self.driver = webdriver.Chrome() |
| 19 | + self.vars = {} |
19 | 20 |
|
20 |
| -def teardown_method(self, method): |
21 |
| - self.driver.quit() |
| 21 | + def teardown_method(self, method): |
| 22 | + self.driver.quit() |
22 | 23 |
|
23 |
| - def test_pluginCommands(self): |
24 |
| - self.driver.get("undefined/webhp") |
25 |
| - print("This is a test string") |
26 |
| - self.driver.find_element(By.CSS_SELECTOR, ".lnXdpd").click() |
27 |
| - self.driver.find_element(By.NAME, "q").send_keys("selenium ide") |
28 |
| - self.driver.find_element(By.NAME, "q").send_keys(Keys.ENTER) |
29 |
| - self.driver.find_element(By.CSS_SELECTOR, ".g a").click() |
30 |
| - assert self.driver.title == "Selenium IDE · Open source record and playback test automation for the web" |
31 |
| - |
| 24 | + def test_pluginCommands(self): |
| 25 | + self.driver.get("undefined/webhp") |
| 26 | + print("This is a test string") |
| 27 | + self.driver.find_element(By.CSS_SELECTOR, ".lnXdpd").click() |
| 28 | + self.driver.find_element(By.NAME, "q").send_keys("selenium ide") |
| 29 | + self.driver.find_element(By.NAME, "q").send_keys(Keys.ENTER) |
| 30 | + self.driver.find_element(By.CSS_SELECTOR, ".g a").click() |
| 31 | + assert ( |
| 32 | + self.driver.title == |
| 33 | + "Selenium IDE · Open source record and playback test automation for the web" |
| 34 | + ) |
0 commit comments