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

//Open messaging app to fetch OTP.
DesiredCapabilities cap = new DesiredCapabilities();
cap.setCapability("appPackage", "");
cap.setCapability("appActivity", "");
driver = new RemoteWebDriver(new URL(""), 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


Please enter your comment!
Please enter your name here