from src.testproject.sdk.drivers import webdriver
device_udid = "emulator-5554" # This is the Device UDID
"app": "C:\\Test\\testproject-demo-app.apk",
"platformName": "Android", # You can change this to IOS if you are installing an IPA
# Replace 'token' with your developer token https://app.testproject.io/#/integrations/sdk
driver = webdriver.Remote(token="kJCeheorpsyq8u4Z17k0JQyBck1qLIf5ZrynbI6t7Fk1", desired_capabilities=desired_capabilities)
# This simple test will install the TestProject application inside the path above and run those simple steps.
# It will re install the app using the fullReset capability.
def test_install(driver):
textfield_name = (By.ID, "name")
textfield_password = (By.ID, "password")
button_dologin = (By.ID, "login")
driver.find_element(*textfield_name).send_keys(username)
driver.find_element(*textfield_password).send_keys(password)
driver.find_element(*button_dologin).click()