@pytest.fixture(scope='session')
def app(request, browser_type, base_url):
    if (browser_type == 'firefox'):
        driver = webdriver.Firefox()
    elif (browser_type == 'chrome'):
        driver = webdriver.Chrome()
    elif (browser_type == 'ie'):
        driver = webdriver.Ie()
    request.addfinalizer(driver.quit)
    return Application(driver, base_url)
@pytest.fixture(scope='session')
def app(request, browser_type, base_url):
    if (browser_type == 'firefox'):
        driver = webdriver.Firefox()
    elif (browser_type == 'chrome'):
        driver = webdriver.Chrome()
    elif (browser_type == 'ie'):
        driver = webdriver.Ie()
    request.addfinalizer(driver.quit)
    return Application(driver, base_url)