2016-06-15 11 views
-2

こんにちは、私はエラーを取得しています、スレッド内セレンのWebドライバ

例外を解決するために助けてください「メイン」org.openqa.selenium.WebDriverExceptionは: 要素は、ユーザーが編集可能である必要がありますそれをクリアするために。コマンドの継続時間 またはタイムアウト:103ミリ秒ビルド情報:バージョン: '2.53.0'、リビジョン: '35ae25b'、時刻: '2016-03-15 17:00:58'システム情報:ホスト: 'anil-PC' 、 ip: '192.168.0.131'、os.name: 'Windows Vista'、os.arch: 'x86'、 os.version: '6.0'、java.version: '1.7.0-ea'セッションID: 0736ad53-a638-44e4-a24a-bcda63bb6f4eドライバ情報: org.openqa.selenium.firefox.FirefoxDriver機能 [{プラットフォーム= WINDOWS、acceptSslCerts =真、javascriptEnabled =真、 browserName = Firefoxの、偽=回転可能、locationContextEnabled = true、 バージョン= 43.0.1、cssSelectorsEnabled = true、databaseEnabled = true、 handlesAlerts = true、nativeEvents = false、webStorageEnabled = true、 applicat ionCacheEnabled = TRUE、takesScreenshot = TRUE}] sun.reflect.DelegatingConstructorAccessorImpl.newInstanceでsun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)で sun.reflect.NativeConstructorAccessorImpl.newInstance0(ネイティブメソッド) で( DelegatingConstructorAccessorImpl.java:45)java.lang.reflect.Constructor.newInstance(Constructor.java:531) で でorg.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206) ORGで 。 openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158) at org.openqa.selenium.remote.RemoteWebDriver.execute(R emoteWebDriver.java:678) でorg.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:327) でorg.openqa.selenium.remote.RemoteWebElement.clear(RemoteWebElement.java:140) でdemo.TestFB.main(TestFB.java:26)原因: org.openqa.selenium.WebDriverException:要素をクリアするために、ユーザーが編集可能な である必要があります。ビルド情報:バージョン: '2.53.0'、リビジョン: '35ae25b'、時間:'2016-03-15 17:00:58 'システム情報:ホスト:' anil-PC '、 ip:' 192.168.0.131 '、os.name:' Windows Vista '、os.arch:' x86 '、 os.version:' 6.0 '、java.version:' 1.7.0-ea 'ドライバ情報: driver.version: bot.Error(ファイル:/// C:/Users/anil/AppData/Local/Temp/anonymous9127022654718385403webdriver-profile/extensions/[email protected]/components/command-processor.js:681) at .bot.action .clear(file:/// C:/Users/anil/AppData/Local/Temp/anonymous9127022654718385403webdriver-profile/extensions/[email protected]/components/command-processor.js:11685) at .WebElement.clearElement( file:/// C:/Users/anil/AppData/Local/Temp/anonymous9127022654718385403webdriver-profile/extensions/[email protected]/components/command-processor.js:12136) .DelayedCommand.prototype.executeInternal_/h(ファイル:/// C:/Users/anil/AppData/Local/Temp/anonymous9127022654718385403webdriver-profile/extensions/[email protected]/components/command-processor.js:12661 ) .DelayedCommand.prototype.executeInternal_(ファイル:/// C:/Users/anil/AppData/Local/Temp/anonymous9127022654718385403webdriver-profile/extensions/[email protected]/components/command-processor.js:12666) .DelayedCommand.prototype.execute/<(ファイル:/// C:/Users/anil/AppData/Local/Temp/anonymous9127022654718385403webdriver-profile/extensions/[email protected]/components/command-processor)。js:12608)

+0

あなたの質問は何ですか?あなたが調べることができるコードは提供していません。あなたはGoogleにエラーメッセージを送りましたか?あなたは何を見つけましたか?あなたのコードで調整しようとしたことは何ですか?あなたのシナリオが何であるか、あなたが試したこと、そしてその結果が何であるかについて、より詳細な情報を追加してください。 – JeffC

答えて

1

ユーザーが編集できない要素では、input()またはtextarea以外の要素に対してclear()を呼び出しています。

要素をクリアするには、その要素を編集する必要があります。明確な程度セレンJavaのドキュメントから

()

/** 
    * If this element is a text entry element, this will clear the value. Has no effect on other 
    * elements. Text entry elements are INPUT and TEXTAREA elements. 
    * 
    * Note that the events fired by this event may not be as you'd expect. In particular, we don't 
    * fire any keyboard or mouse events. If you want to ensure keyboard events are fired, consider 
    * using something like {@link #sendKeys(CharSequence...)} with the backspace key. To ensure 
    * you get a change event, consider following with a call to {@link #sendKeys(CharSequence...)} 
    * with the tab key. 
    */ 
関連する問題