7

ほかにバリエーションをご存知でしたら教えてください。

こんな構成の箇条書きだと嬉しいです。

エラーの特定文言

原因
対策
推奨アクション

スレッドURL
リファレンスURL

検索でヒットするように、時間のできたときに随時投稿に転記させていただきます。
ある程度バリエーションが出尽くすまでオープンにしときます。

 

 

デジャブ感抑止のため、前置きです。
リピーターのかたは、少し下のメインパート★からどうぞ。

 

エラーの汎用文言

このエラーは共通部分です。

スクリプトの実行に失敗しました。
ライブラリ実行(spv_Web)に失敗しました。

トラブルシュートには繋がりにくいです。
深堀る余地があるという目安にします。

 

SPVエラー情報収集

エラーの原因っぽい文言が見当たらない場合は、「SPVエラー情報収集」で、Seleniumのエラーを確認します。

https://winactor.com/questions/?q=SPVエラー情報収集

Seleniumエラー一覧 - Qiita
https://qiita.com/wearemusiclover/items/b3acd64e9fc8caa97f7d

 

YesNoチャート

ブラウザ操作のライブラリで、段階的にトラブルシュートするためのYesNoチャート案を紹介したことがあります。

https://winactor.com/questions/question/ブラウザ関連ライブラリのエラー用yesnoチャート/

 

 

メインパート★

 

session not created

WebDriverのバージョン不適合
ブラウザのバージョンに適合するWebDriverを使う
ドキュメント\WinActor\webdriverにchromedriver.exe等を格納

Seleniumがブラウザバージョンを勘違い?
勘違いに付き合う
Seleniumが主張するバージョンのWebDriverを使う

https://winactor.com/questions/question/ブラウザ起動、ページ表示ができない。/

https://winactor.com/questions/question/edge-ブラウザ起動ができない/

https://winactor.com/questions/question/『ブラウザ起動』ノードでchromeが起動できない/

https://winactor.com/questions/question/chromeバージョンが誤識別されブラウザ起動に失敗/

 

Failed to open a browser

ブラウザ名の変数に値がない(半角英数でない)
Ver.7.2系の考慮不足
ブラウザ名の変数に半角英数の初期値を入れる

想定と異なるWebDriverが参照されている
意図通りのWebDriverを参照させる
ドキュメント\WinActor\webdriverにchromedriver.exe等を格納

https://winactor.com/questions/?q=Ver7.2でブラウザ起動エラーになります

https://winactor.com/questions/question/ブラウザ起動(プロキシ設定)エラー/

 

どこを切り取れば良いのやら、、
全部に意味がありそうなので、ひとまず全引用

Chrome failed to start
unknown error: Chrome failed to start: crashed.
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location [chrome.exeのパス] is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

WebDriverの不適合、マイナーバージョン違い
ブラウザのバージョンに適合するWebDriverを使う
ドキュメント\WinActor\webdriverにchromedriver.exe等を格納

https://winactor.com/questions/question/ver7-2-1でgooglechromeを自動記録したが実行時にエラーが表示さ/

 

Session Timed Out After 60 Seconds

制限時間内にブラウザが立ち上がらなかった
立ち上がるまで辛抱強く待つ
スパルタ式のフローを検討

https://winactor.com/questions/?q=ブラウザの起動に失敗しました(session+timed+out)

 

invailed argument

WebDriverのバージョン不適合
ブラウザのバージョンに適合するWebDriverを使う
ドキュメント\WinActor\webdriverにchromedriver.exe等を格納

ファイル選択ボタンにクリックを使った、アプローチの相違、WebDriverの仕様変更
アプローチの変更
ファイル選択 or 値の設定(入力再現)

https://winactor.com/questions/question/winactor7-2「クリックchrome」でエラー/

https://winactor.com/questions/?q=chromeではなく、IEでキーの入力再現をする方法

https://winactor.com/questions/question/ブラウザで、『ファイルを指定して開く』ダイア/

https://winactor.com/questions/question/chromeで指定フォルダからcsvファイルを開いてアップロ/

https://winactor.com/questions/question/ブラウザ操作の「次のウィンドウでへ移動」で移/

https://winactor.com/questions/question/chrome-のクリックについて/

 

no such element
The element is not found

そのウィンドウにXPathの要素がない
対象のウィンドウに移動する
次のウィンドウへ移動、任意のウィンドウへ移動

そのフレームにXPathの要素がない
対象のフレームに移動する
フレーム選択

XPathが正しくない
許容範囲内のXPathを使う
outerHTMLを晒してアドバイスをもらう

containsの値が複数行の1行目以外にある
n行目の要素を検索対象に含める
text()[3]とか.を使う

https://winactor.com/questions/?q=MS+Edge+xPathでのボタンのクリックについて

https://winactor.com/questions/question/xpathが見つからない?/

https://winactor.com/questions/?q=Chromeで値の取得に失敗する

https://winactor.com/questions/question/edgeで指定文字列が表示されているリンクをクリッ/

 

Element Not Interactable

想定外の操作
アクティブ化後に入力
クリックを挟む

目的の要素が他の要素の後ろに隠れてる
表示を調整
ウィンドウサイズの変更、ズームの調整

要素がウィンドウの表示範囲外にある
要素の位置にスクロール
Homeで最上部に戻る

要素が非表示になっている
間接的に制御
labelのクリック

入力方法指定あり ≒ 手入力不可
カレンダーから入力 or 制限の一時解除
JavaScriptでreadonlyのプロパティをfalseに変更+値の設定

How To Resolve Element Not Interactable Exception Selenium
https://automationtestings.com/element-not-interactable-exception-selenium/

Seleniumを使ってテスト自動化。[第4回 応用編. Seleniumでテストシナリオを作成する際に注意するポイント with Java] | Call Center Trends
https://callcenter-trend.com/2020/01/19/selenium-04-create-test-scenario-with-selenium-and-java/

【Selenium】ヘッドレスモード時だけ"element not interactable"になる - ゆうきのせかい
https://yuki.world/selenium-headless-chrome-not-interactable/

SeleniumでCheckBOXがクリックできない | Seleniumワールド
https://selenium-world.net/trouble-shooting/3069/

Seleniumでelement not interactableって怒られる場合でもエレメントを押下する方法 - Qiita
https://qiita.com/Ricordanza/items/ace1c68ac58327262848

Python 3.x - Python ログインボタンをクリックするとエラーになる。|teratail
https://teratail.com/questions/324904

java - element not interactable exception in selenium web automation - Stack Overflow
https://stackoverflow.com/questions/45183797/element-not-interactable-exception-in-selenium-web-automation

How do you fix the “element not interactable” exception?
https://www.py4u.net/discuss/19767

https://winactor.com/questions/?q=ブラウザ関連-値の設定ライブラリ実行失敗

https://winactor.com/questions/?q=値の設定が上手く通る時と通らない時があります。

https://winactor.com/questions/question/カレンダー表示の画面への日付設定/

 

invalid element state

Element Not Interactableとかなり近いはず
まだクリアした例が見つかってないかも
「これでクリアした」を教えてください

https://winactor.com/questions/question/xpath指定でクリックはできるが値の入力ができない/

https://winactor.com/questions/?q=ブラウザ関連値の設定ライブラリ実行失敗

 

「値の設定」で入力できず、「値の設定(入力再現)」で入力できるケースのエラーはどんなエラーだったか、、

sourei 回答した質問
回答とコメントは、会員登録(無料)で閲覧できるようになります。