Selenium 4.5.0 | NotImplementedError when attempting actions on disabled elements
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- python
- 領域
- testing-qa
調査の方向性
まず、提供された Robot Framework の再現手順を Selenium 4.4.3 と 4.5.0 に対して実行し、続いて無効化された要素の動作に関するリンク先の Selenium issue と commit を確認します。Get Selected List Label が使用する SeleniumLibrary の keyword をたどり、他の操作を壊すことなく、無効化されたリストから選択されたオプションを読み取れることを検証します。
索引モデルが issue の本文から書いたものです。
説明
For issues
Steps to reproduce the issue
Using selenium 4.5.0+
*** Settings ***
Library SeleniumLibrary
*** Test Cases ***
Test Disabled Elements
Open Browser https://demos.jquerymobile.com/1.4.5/forms-disabled browser=chrome
Maximize Browser Window
${list_selection}= Get Selected List Label //select[@id='select-native-5']
List Selection Should Be //select[@id='select-native-5'] ${list_selection}
Error messages and additional information
NotImplementedError: Select element is disabled and may not be used.
This seems to be caused by a change in https://github.com/SeleniumHQ/selenium/issues/10812 (specifically https://github.com/SeleniumHQ/selenium/commit/e2bbb54153370ee56b43e7260aef5923ec826be4#diff-48418bfd0178cef4e4f71bf60506204d33e152281f0bb5a670b9295689b6e01e) and from the looks of the discussion it may not be changed unless there is good cause so I wanted to bring it up here in case there were opinions on the matter. This more than likely extends to quite a few keywords and I am not quite sure what the solution would be on the SeleniumLibrary side.
Expected behavior and actual behavior
We should be able to get the selected option regardless of whether the list is disabled or not. Using the previous selenium release (4.4.3) works just fine.
Environment
Browser: Chrome latest
Browser driver: chrome latest
Operating System: Windows 10
Libraries
- Robot Framework: 5.0.1
- Selenium: 4.5.0
- SeleniumLibrary: 6.0.0
- Interpreter: Python 3.9
- 主要言語
- Python
- スター
- 1.5k
- フォーク
- 787
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
robotframework/SeleniumLibrary のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
robotframework/SeleniumLibrary#1941 · コメント 3 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
robotframework/SeleniumLibrary#1833 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
robotframework/SeleniumLibrary#1436 · コメント 5 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
robotframework/SeleniumLibrary#1993 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
robotframework/SeleniumLibrary#1992 · コメント 4 件 ·
robotframework/SeleniumLibrary の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
stephrobert/dsoxlab#238 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
sublimehq/package_control#1780 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
nwg-piotr/nwg-displays#145 ·