Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/313.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/119.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java AppiumGUI中的Appium启动器_Java_Ios_Mobile Safari_Appium - Fatal编程技术网

Java AppiumGUI中的Appium启动器

Java AppiumGUI中的Appium启动器,java,ios,mobile-safari,appium,Java,Ios,Mobile Safari,Appium,有人能告诉我Appium GUI必须有safari启动器吗?如果没有,如何将此启动器添加到appium? 我试着加上它。我尝试从github()编译项目,并将编译后的归档文件放到appium中。 当我尝试使用它时,safari启动了,但我有一个错误,那个启动器找不到按钮。 我需要做什么 谢谢和问候 控制台日志 error: Error. Could not find button to launch Safari. Make sure you are using the latest versi

有人能告诉我Appium GUI必须有safari启动器吗?如果没有,如何将此启动器添加到appium? 我试着加上它。我尝试从github()编译项目,并将编译后的归档文件放到appium中。 当我尝试使用它时,safari启动了,但我有一个错误,那个启动器找不到按钮。 我需要做什么

谢谢和问候

控制台日志

error: Error. Could not find button to launch Safari. Make sure you are using the latest version of SafariLauncher that appium is using

info: [debug] Error: Error. Could not find button to launch Safari. Make sure you are using the latest version of SafariLauncher that appium is using
at [object Object]. (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/safari.js:70:17)
at [object Object]. (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/common.js:77:12)
at [object Object].iOSController.handleFindCb (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios-controller.js:313:5)
at [object Object]. (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios-controller.js:138:14)
at next (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:798:43)
at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:32:16
at [object Object].exports.respond (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/common.js:28:9)
at [object Object]. (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios.js:1498:18)
at getResultAndSendNext (/Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-uiauto/lib/command-proxy.js:146:20)
at Socket. (/Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-uiauto/lib/command-proxy.js:88:7)
at Socket.emit (events.js:129:20)
at streamreadable.js:908:16
at process._tickDomainCallback (node.js:381:11)
我的java代码:

public static void main(String[] args) {
        DesiredCapabilities safari = new DesiredCapabilities();
        safari.setCapability("browser", "Safari");
        safari.setCapability("platformName", "iOS");
        safari.setCapability("deviceName", "iPod asolovei");
        AppiumDriver driver = null;

        System.out.println("Before connect to server");

        try {
            driver = new IOSDriver(new URL("http://192.168.10.42:4723/wd/hub"), safari);
        } catch (MalformedURLException ex) {
            System.out.println(ex.getMessage());
        }
        System.out.println("After connect to server");

        driver.get("http://www.google.com/");

        System.out.println(driver.getTitle());
        driver.quit();
    }

配置文件似乎有问题。 参观这里


此线程具有相同的解决方案。

将appium更新至最新版本,这是appium 1.4.13的一个错误。此问题已在以后的版本中解决。 请按照以下步骤安装safari launcher