0

this is a text shot from error message on cmd appeared when trying to execute test cases in python .. error in line 19: self.driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps) in setup function


Traceback (most recent call last): File "login.py", line 19, in setUp self.driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps) File "C:\Python27\lib\site-packages\appium\webdriver\webdriver.py", line 36, in init super(WebDriver, self).init(command_executor, desired_capabilities, browser_profile, proxy, keep_alive) File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 98, in init self.start_session(desired_capabilities, browser_profile) File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 185, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 249, in execute self.error_handler.check_response(response) File "C:\Python27\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 193, in check_response raise exception_class(message, screen, stacktrace) WebDriverException: Message: A new session could not be created. (Original error: com.app./.Activities.StartActivity never started. Current: com.app./.Activities.Login.LoginActivity)


1 Answer 1

1

what are your desired capabilities?

try to specify

'appWaitActivity': '*' in your desired capabilities,

it will launch your application and then you can find out in appium logs what exact activity was launched, and then you can replace * with found activity name.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.