robotframework / robotframework/SeleniumLibrary
Wait For Condition and Title Should Be seem to be out of sync
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 1.5k
- Forks
- 787
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
For issues
Steps to reproduce the issue
I noticed when running headlesschrome I get a failure versus using chrome which passes. I think the Javascript changes before the self.driver.title does on headlesschrome
I have the following code
Wait For Condition return document.title === 'Title of Website'
Title Should Be Title of Website
I have this code running in three back to back tests, the first one is the one that fails the most; but it isn't guaranteed. This concerns me that it might not be easily reproducible.
For a solution; I think implementing a Wait Unit Title Is keyword would be best to implement so it is using the self.driver.title property to match Title Should Be.
Error messages and additional information
Title should have been 'Title of Website' but was 'Sign In Page'.
Browser: Headlesschrome
Browser driver: Chrome
Operating System: Windows 10
Libraries
- Robot Framework: Version 4.0.1
- SeleniumLibrary: Version 5.1.3
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Empieza reproduciendo las tres pruebas consecutivas con Headless Chrome y compara la espera de la condición con la aserción del título. Traza cómo la aserción del título existente lee el título del navegador y cómo se implementan las esperas. Se considera completado cuando las comprobaciones del título usan un estado coherente del navegador y el fallo intermitente queda cubierto por una prueba de regresión.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- testing-qa, web-dev
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 25/100