Upgrading to 10.9.82

Hi,
I tried to upgrading my appium studio to the 10.9.82 version, and now I can’t run my test on Eclipse:
Exception in thread “main” org.openqa.selenium.UnsupportedCommandException:

but I can open the device on Appium
Someone have an idea of how to fix it?

EDIT: I changed my code, I think the line:
driver.executeScript(“client:client.launch(“Plans”)”);
doesn’t work

Hi Fazerting,

The command driver.executeScript allows you to run javascript when in WebView. It appers that you are trying to use it in order to launch a native app but there are two Boolean parameters missing:

For example, if I wanted to launch EriBank I would use - driver.executeScript("client:client.launch(\"com.experitest.ExperiBank\", \"true\", \"true\")");

The first Boolean is to launch the application in instrumented mode whereas the other is to stop the app if it is already running.

Also, “Plans” doesn’t seem to be a valid package name. Please make sure that you are providing the method with the correct package string.

Hi,
I think I have a problem with this version of Appium :

and the source code :

I’m just trying to connect to the Iphone, but I don’t see my mistake…

Hi,

I was able to recreate the issue on my end.

The problem here is the way to initialize the driver:

driver = new IOSDriver<>(new URL("http://" + host +":" + port), dc);

Doing so throws an exception in Appium Server as well, which means that the problem is not with Appium Studio.

Provide the full URL in order to overcome the issue.
driver = new IOSDriver<>(new URL("http://localhost:4723"), dc);

I think the issue is with javascript Code, please ensure that the method is correct. Also try the old selenium JavascriptExecutor->

JavascriptExecutor executor = (JavascriptExecutor) driver;
executor.executeScript(“your_script”);