Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #klasa testu:
- from selenium import webdriver
- class Foo(unittest.TestCase):
- def setUp(self):
- self.driver = webdriver.Firefox()
- login_page = Foo2(self.driver)
- #testy
- def tearDown(self):
- self.driver.close()
- #w klasie strony logowania w innym pliku:
- class Foo2():
- def __init__(self, driver):
- self.driver = driver
- #metody dla strony logowania
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement