Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session can't be created #96

Closed
nashmaniac opened this issue Jul 14, 2015 · 3 comments
Closed

Session can't be created #96

nashmaniac opened this issue Jul 14, 2015 · 3 comments

Comments

@nashmaniac
Copy link

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??

@sazid
Copy link

sazid commented Jul 14, 2015

Can this be of any help? appium/appium#338

@imurchie
Copy link
Contributor

Can you provide the server logs? In there we ought to be able to see the commands being used to launch the app, and what is going on in more detail.

@imurchie
Copy link
Contributor

Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants