Skip to content

Commit cd5f4aa

Browse files
cclausstoddtarsi
authored andcommitted
test_checks.py: Fix Python syntax errors and run code format
* [x] Detect syntax errors with [`python3.11 -m ast test_checks.py`](https://docs.python.org/3/library/ast.html#command-line-usage) * [x] Fix the Python syntax errors. * [x] Format the code with [`black test_checks.py`](https://github.com/psf/black#readme) * [x] Sort the imports with [`ruff --select=I --fix test_checks.py`](https://beta.ruff.rs/docs) @toddtarsi Your review, please
1 parent fd21229 commit cd5f4aa

File tree

1 file changed

+24
-21
lines changed

1 file changed

+24
-21
lines changed
Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,34 @@
11
# Generated by Selenium IDE
2-
import pytest
3-
import time
42
import json
3+
import time
4+
5+
import pytest
6+
57
from selenium import webdriver
6-
from selenium.webdriver.common.by import By
78
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
812
from selenium.webdriver.support import expected_conditions
913
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-
1314

14-
class TestChecks():
1515

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 = {}
1920

20-
def teardown_method(self, method):
21-
self.driver.quit()
21+
def teardown_method(self, method):
22+
self.driver.quit()
2223

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

Comments
 (0)