robotframework / robotframework/SeleniumLibrary
Selenium 4.5.0 | NotImplementedError when attempting actions on disabled elements
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 1.5k
- Fork
- 787
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia eseguendo la riproduzione fornita di Robot Framework con Selenium 4.4.3 e 4.5.0, quindi esamina l’issue e il commit di Selenium collegati relativi al comportamento degli elementi disabilitati. Segui la keyword di SeleniumLibrary utilizzata da Get Selected List Label e verifica che l’opzione selezionata possa essere letta da un elenco disabilitato senza interrompere le altre azioni.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- testing-qa
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100