コード例 #1
0
ファイル: conftest.py プロジェクト: i4ali/automation-fdms
def session_setup():
    """
    Obtains web driver instance from driver factory to be used by the tests for the entire
    session. The function is run twice as follows:
    a) once before the start of session
    b) after the end of session
    """
    driver = Driver.instance()
    yield
    driver.quit()
コード例 #2
0
 def __init__(self):
     self.driver = Driver.instance()
コード例 #3
0
ファイル: conftest.py プロジェクト: i4ali/automation-fdms
def method_setup():
    """
    Every test would start from the base url (landing page)
    """
    driver = Driver.instance()
    driver.get(globalconfig.base_url)