uiautomator2 can't find waitActivity because it closes too quickly #3
-
I'm running appium server v2.2.1 with Visual Studio Appium WebDriver v4.3.2. When my app launches on the device, Appium Server tells me that it's looking for the Main Activity, but finds the LoginActivity. It appears that Main Activity is closing too quickly - Is there any way to force appium to look for the Login Activity rather than whatever the main activity is? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Yes, this is possible by providing appWaitActivity. You can even disable waiting completely. Read https://github.com/appium/appium-uiautomator2-driver/blob/master/docs/activity-startup.md for more details. |
Beta Was this translation helpful? Give feedback.
appWaitDuration must be a number, not a boolean.
Also, in order to skip waiting completely the appWaitForLaunch capability must be set to false