Ejemplo n.º 1
0
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()
Ejemplo n.º 2
0
 def __init__(self):
     self.driver = Driver.instance()
Ejemplo n.º 3
0
def method_setup():
    """
    Every test would start from the base url (landing page)
    """
    driver = Driver.instance()
    driver.get(globalconfig.base_url)