Appium: An unknown server-side error occurred while processing the command. Original error: 'app' option is required for reinstall

Created on 27 Nov 2019  路  3Comments  路  Source: appium/appium

The problem

while i am launching an app with appium m getting blow error

Exception in appium desktop Encountered internal error running command: Error: 'app' option is required for reinstall

and I have written below code---

from appium import webdriver

desired_caps = {}
desired_caps['platformName'] = 'Android'
desired_caps['platformVersion'] = '10.0'
desired_caps['deviceName'] = 'Android Emulator'
desired_caps['appPackage'] = 'com.android.calculator2'
desired_caps['appActivity'] = '.Calculator'

driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)

driver.find_element_by_name("1").click()
driver.find_element_by_name("5").click()
driver.find_element_by_name("9").click()
driver.find_element_by_name("delete").click()
driver.find_element_by_name("9").click()
driver.find_element_by_name("5").click()
driver.find_element_by_name("+").click()
driver.find_element_by_name("6").click()
driver.find_element_by_name("=").click()

driver.quit()

NeedsInfo NotABug

Most helpful comment

I think the app have not installed on the device.

All 3 comments

Could you attache the full appium server log?

I would guess that if the app is already installed on the device then noReset capability is necessary to tell Appium not to reset it on the session startup

I think the app have not installed on the device.

Was this page helpful?
0 / 5 - 0 ratings