I recently found the SeleniumIDE extension for Google Chrome, but there is something I don't understand...
from selenium import webdriver
from selenium.webdriver.common.by import By
class TestStealth():
def setup_method(self, method):
print("setup_method")
self.driver = webdriver.Chrome()
self.vars = {}
def teardown_method(self, method):
self.driver.quit()
def test_stealth(self):
print("Testing")
self.driver.get("https://stealthxio.myshopify.com/products/stealthxio-practice")
self.driver.set_window_size(968, 1039)
this is the code I get from selenium, when I try to run with:
run = TestStealth()
run.setup_method()
run.test_stealth()
I get an error in run.setup_method() as:
Missing 1 required positional argument: 'method'
Does anyone know what I am doing wrong?