-
-
Notifications
You must be signed in to change notification settings - Fork 760
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
Need altenate method for AppiumDriver.launchApp() in new java client version 8.x #1871
Comments
I also have the same question. I have a suite where each test should start from Login screen (Home). So basically what I do in io.appium:java-client:7.6.0 is to call in @BeforeMethod (Test) TestNG:
|
ok. It seems there is a workaround (Kotlin): (driver as InteractsWithApps).activateApp(appBundleId) |
@diebold2000 @dipikachowdhary07 @mykola-mokhnach any update on the same question (how to make fast app restart and back user to Login screen / Home screen in the absence of driver.launchApp()) |
Hello @deepakarorawins with client 8.3.0 and server 2.0.1 the following statements work perfectly for me (Kotlin):
This code is executed under @BeforeMethod and gets user to Login screen every time. |
Thanks @diebold2000, however it is not working for me using java, earlier we use to see logged out state after using launchApp() method, but now it keeps us logged in. So all our test which are expected to start with login, are failing because app is already logged in. @mykola-mokhnach any suggestion from your side please? |
Thank you @mykola-mokhnach Thank you @mykola-mokhnach for the help, however my observation is that removeApp then installApp and then launchApp/ActivateApp takes more time in comparison to just old launchApp() method, is this expected? For our iOS app Old launchApp() is taking: 21 seconds approximately. For our iOS app New removeApp-->installApp-->launchApp is taking 28 seconds approximately. |
I am upgrading my current project from appium.java-client.version 6.1.0 to 8.1.1
My previous code base was using AppiumDriver.launchApp() method to go to home screen, but I couldnot find any alternate method in version 8.1.1
I also went through appium/appium#15807 but couldnot find any relevant information. Can anyone please help on this?
The text was updated successfully, but these errors were encountered: