How do I when is for any other .

Need to from messaging app during a test case is running for my app.
I have tried to create new instance RemoteWebDriver for Appium server with messaging app capabilities.

//Confirm OTP Submission
driver.findElement(By.id(“btnConfirm”)).click();

//Open messaging app to fetch OTP.
DesiredCapabilities cap = new DesiredCapabilities();
cap.setCapability("appPackage", "com.android.mms");
cap.setCapability("appActivity", "com.android.mms.ui.ConversationList");
driver = new RemoteWebDriver(new URL("http://127.0.0.1:4723/wd/hub"), cap);

But, above code is not working and got error –

A new session could not be created. (Original error: Requested a new
session but one was in progress)

I am using , Appium, Eclipse on Windows7.



Source link https://sqa.stackexchange.com/questions/18851/how-to-open-messaging-app-during-one-android-app-test-case-is-running-to-fetch-o

LEAVE A REPLY

Please enter your comment!
Please enter your name here