Churikova Tetiana ccf3fcc485 add ability to delete fork;
rework BaseTestCase to use 2 drivers and setup\teardown classmethods;
move all preconditions for tests to setup\teardown classmethods.
2018-02-06 12:58:13 +02:00

19 lines
334 B
Python

from datetime import datetime
class BasePageObject(object):
def __init__(self, driver):
self.driver = driver
def get_url(self, url):
self.driver.get(url)
def refresh(self):
self.driver.refresh()
@property
def time_now(self):
return datetime.now().strftime('%-m%-d%-H%-M%-S')