Ejemplo n.º 1
0
def test2():
    desired = DesiredCapabilities("Android", "Android", "Xiaomi", "9",
                                  "com.android.chrome",
                                  "com.google.android.apps.chrome.Main")
    driver = Driver("http://127.0.0.1:4723/wd/hub", desired.__dict__)
    chrome_test = Chrome(driver)
    chrome_test.run_app()
Ejemplo n.º 2
0
def test1():
    desired = DesiredCapabilities("Android", "Android", "Xiaomi", "9.0",
                                  "com.mbacallado.thirdexampleandroid",
                                  ".activities.MainActivity")
    driver = Driver("http://127.0.0.1:4723/wd/hub", desired.__dict__)
    mir_app_test = MirApp(driver)
    mir_app_test.run_app("Tenerife", "Buenavista del Norte",
                         "Mirador Altos de Baracán")
Ejemplo n.º 3
0
def browser():
    factory = Driver()
    browser = factory.GetDriver()

    if browser is not None:
        print("New driver instance created!")
    else:
        raise WebDriverException("Never created!")

    yield browser

    browser.quit()