You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the package name is com.automationsolutionz.sunshine.app
the main activity name is com.automationsolutionz.sunshine.app.MainActivity
def setup(**kwargs):
desired_caps={}
for each in kwargs:
desired_caps[each]=kwargs[each]
android_driver=webdriver.Remote(hub_path,desired_caps)
return android_driver
def main():
setup(platformName = 'Android',platformVersion = '4.2',deviceName ='F4AZCY05A885',appPackage='com.automationsolutionz.sunshine.app',appActivity='MainActivity')
But calling this giving me an error:
selenium.common.exceptions.WebDriverException: Message: A new session could not be created. (Original error: Activity used to start app doesn't exist or cannot be launched! Make sure it exists and is a launchable activity)
but when I run from the adb shell:
adb -s F4AZCY05A885 shell am start -W -a android.intent.action.MAIN -n com.automationsolutionz.sunshine.app/.MainActivity
then it runs successfully.
Any help??
The text was updated successfully, but these errors were encountered:
the package name is com.automationsolutionz.sunshine.app
the main activity name is com.automationsolutionz.sunshine.app.MainActivity
But calling this giving me an error:
selenium.common.exceptions.WebDriverException: Message: A new session could not be created. (Original error: Activity used to start app doesn't exist or cannot be launched! Make sure it exists and is a launchable activity)
but when I run from the adb shell:
then it runs successfully.
Any help??
The text was updated successfully, but these errors were encountered: