Groups
Groups
Sign in
Groups
Groups
日本Seleniumユーザーコミュニティ
Conversations
Labels
About
Send feedback
Help
StaleElementReferenceExceptionの対処ができない
446 views
Skip to first unread message
naoya yanagawa
unread,
Jan 30, 2023, 9:27:19 AM
1/30/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 日本Seleniumユーザーコミュニティ
初めまして質問させてください。
C#でSeleniumを使っていますが、StaleElementReferenceException のエラーが解消できません。
以下のような処理の流れをしています。
1. 対象のwebサイトにアクセス
2. ボタンをクリックして次の画面に遷移
3. 必要な情報を収集面に遷移
5. 2-5のループ
ループの2週目でStaleElementReferenceExceptionのエラーが必ず発生してしまいます。
以下のネット情報にあるようにスリープとリトライを試してみましたが解決できませんでした。
https://zudoh.com/trouble-shooting/selenium-stale-element-reference-exception
ループ処理部分のコードを添付します。
もし気になる点があれば教えていただけないでしょうか?
Reply all
Reply to author
Forward
0 new messages