2016-10-16 11 views
0

アクションの実行時にエラーが発生しました(クリック、クリア、キー送信など) iOSネイティブ要素しかし、findElementはうまく動作しますorg.openqa.selenium.WebDriverException:iOSネイティブエレメントでアクションを実行しようとしたときに、メソッドが実装されていないというエラーが発生しました

Android用にうまくいきます。

現在のコンテキストがNATIVE_APP

同じコードとデバイスが別のマシン上で完全に正常に動作しています。

DesiredCapabilities cap = new DesiredCapabilities(); 

cap.setCapability("platformName", "ios"); 

cap.setCapability("platformVersion", "9.2"); 

cap.setCapability("deviceName", "ipad");   

cap.setCapability("udid", <my device's UDID>);  

cap.setCapability("app", "/Users/syscotester/Documents/APP/App.ipa"); 

WebDriver driver = new IOSDriver<>(new URL("http://127.0.0.1:4724/wd/hub"),cap); 
driver.findElement(By.xpath("//UIAWebView[1]/UIATextField[1]")); 

elm.click(); 

例外)(elm.click上で、ライン

昨日まで細かい仕事をしていました。突然動作を停止しました。メソッドはまだ実装されていません(警告:サーバは任意のスタックトレース情報を提供しなかった) スレッド「メイン」org.openqa.selenium.WebDriverExceptionで

例外:

スタックトレースを助けてくださいコマンドの継続時間またはタイムアウト:25ミリ秒 ビルドインフォメーション:バージョン: '2.53.1'、改訂: 'a36b8b1'、時間:'2016-06-30 17:37:03 ' システム情報:ホスト:' TVMATP285575M '、ip :'10 .155.190.189 '、os.name:' Mac OS X '、os.arch:' x86_64 '、os.version:'10 .11.5'、java.version: '1.8.0_101' ドライバ情報:io。 appium.java_client.ios.IOSDriver[= app =/Users/syscotester/false]、deviceName = Parvathy's ipad、platform = MAC、showIOSLog = true、desired = {app = /ユーザー/ syscotester /ドキュメント/ APP/UOMQASQ.ipa、networkConnectionEnabled = false、databaseEnabled =ドキュメント/ APP/UOMQASQ.ipa、showIOSLog = true、platformVersion = 9.2、platformName = iOS、udid = da85ce3eac13bf4d19b627ee3c1ac02a2b9a2bfe、deviceName = Parvathyのipad}、platformVersion = 9.2、webStorageEnabled = false、locationContextEnabled = false、browserName =、takesScreenshot = true、javascriptEnabled = TRUE、platformName =イオスUDID = da85ce3eac13bf4d19b627ee3c1ac02a2b9a2bfe}] セッションID:sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImplでsun.reflect.NativeConstructorAccessorImpl.newInstance0(ネイティブメソッド) で8d5cb461-e7ab-4745-ab6e-1f80d916e34b 。 java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Delegatコンストラクタ.java:423) at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206) at org.openqa。 io.appium.java_client.DefaultGenericMobileDriver.executeでorg.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678) (DefaultGenericMobileDriver.javaで(ErrorHandler.java:158) selenium.remote.ErrorHandler.throwIfResponseFailed: 51) at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1) at io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1) at org.openqa.selenium.remote。 RemoteWebElement.execute(RemoteWebElement.java:327) at io.appium.java_client.DefaultGenericM io.appium.java_client.MobileElement.execute(MobileElement.java:1)の で、 org.openqa.selenium.remote.RemoteWebElement.click Tester.mainで(RemoteWebElement.java:85) (Tester.java:26)

答えて

0

私はMACに新しいユーザーアカウントを作成してしまいます。 Appiumで問題が発生しているようです。キャッシュをアンインストールすると正しく削除されませんでした(ごみ箱に移動します.Dmgを使用しています)。 しかし、私は新しいユーザーアカウントを作成し、すべての設定/インストールを行ったときに、ネイティブ要素が動作し始めました。

上記は単なる回避策であり、あまりにも面倒なものです。他の解決策がある場合は、共有してください。

関連する問題