open-bounty/test/end-to-end/pages/base_page.py

19 lines
334 B
Python
Raw Normal View History

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')