Created
November 5, 2017 22:39
-
-
Save hyperh/73f0ee8e44efc4c789b25874de5c4290 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pytest | |
import os | |
from appium import webdriver | |
@pytest.fixture(scope="function") | |
def driver(): | |
driver = webdriver.Remote( | |
command_executor='http://127.0.0.1:4723/wd/hub', | |
desired_capabilities={ | |
'app': os.path.expanduser( | |
'./android/app/build/outputs/apk/app-debug.apk'), | |
'platformName': 'Android', | |
'deviceName': 'Android Emulator' | |
}) | |
yield driver # Test code runs after this line | |
# Teardown | |
driver.quit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment