Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/315.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 Appium驱动程序不建议在代码库中使用removeapp()函数_Java_Appium_Appium Android - Fatal编程技术网

Java Appium驱动程序不建议在代码库中使用removeapp()函数

Java Appium驱动程序不建议在代码库中使用removeapp()函数,java,appium,appium-android,Java,Appium,Appium Android,我想使用driver.removeapp({bundleID});命令,但IDE不建议使用此方法,即使我已导入io.appium.java_客户端。* 您需要仔细检查驱动程序变量的声明: public AppiumDriver driver; driver = new IOSDriver(appiumURL, capabilities); driver.removeApp(bundleId); 您需要再次检查驱动程序变量的声明: public Appium

我想使用driver.removeapp({bundleID});命令,但IDE不建议使用此方法,即使我已导入io.appium.java_客户端。*


您需要仔细检查驱动程序变量的声明:

    public AppiumDriver driver;

    driver = new IOSDriver(appiumURL, capabilities);

    driver.removeApp(bundleId);

您需要再次检查驱动程序变量的声明:

    public AppiumDriver driver;

    driver = new IOSDriver(appiumURL, capabilities);

    driver.removeApp(bundleId);

removeApp(..)
方法在
InteracticsWithApps
界面中声明。你能出示你的
司机
声明吗?@YevhenDanchenko非常感谢。问题在驱动程序声明中。
removeApp(..)
方法在
interacticswithapps
界面中声明。你能出示你的
司机
声明吗?@YevhenDanchenko非常感谢。问题在于驾驶员声明。