'options' argument in 'open browser' not honored when 'browser' argument is set to 'edge' or 'safari'
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- python
- Área
- testing-qa, web-dev
Línea de trabajo
Comienza con los archivos de reproducción test.robot y test.py; después, sigue cómo la palabra clave open browser gestiona el argumento options para los valores de navegador edge y safari. Ejecuta robot test.robot con la configuración proporcionada de Selenium y BrowserStack, y compara las capabilities resultantes con chrome y firefox. Se considera terminado cuando las opciones también se respetan para edge y safari.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem statement:
Executing tests using Remote webdriver on BrowserStack but the options object passed under the 'options' parameter under the 'open browser' keyword doesn't get honored when the 'browser' parameter is set to 'edge' or 'safari'.
However, this works when the 'browser' argument is set to either 'chrome' or 'firefox'.
Note: The same also works across all browser argument values when using selenium 3.141.0 and desired_capabilities
Setup information:
python 3.7.12
robotframework 5.0.1
robotframework-seleniumlibrary 6.0.0
selenium 4.3.0
Steps to repro:
- Create the below-mentioned files:
test.robot
*** Settings ***
Library SeleniumLibrary
Library Collections
Library test.py
*** Variables ***
${test_url}= https://google.com
${USERNAME}= %{BROWSERSTACK_USERNAME}
${ACCESSKEY}= %{BROWSERSTACK_ACCESS_KEY}
${REMOTE_URL}= https://${USERNAME}:${ACCESSKEY}@hub-cloud.browserstack.com/wd/hub
*** Keywords ***
Open Session
${opts}= browserstack test
open browser remote_url=${REMOTE_URL} url=${test_url} options=${opts} browser=edge
*** Test Cases ***
Quick Test
Open Session
close browser
test.py
from selenium.webdriver.edge.options import Options
def browserstack_test():
edge_options = Options()
bstack_caps = {
"os" : "Windows",
"osVersion" : "8",
"debug" : "true"
}
edge_options.set_capability("browserVersion", "90")
edge_options.set_capability("bstack:options", bstack_caps)
return edge_options
========================================
- Create a free account on BrowserStack
- Set the BrowserStack username and accesskey of the account under the following env variables on your machine:
BROWSERSTACK_USERNAME
BROWSERSTACK_ACCESS_KEY - Run the test --> robot test.robot
You'll notice that the test runs on a random version of Edge and the 'options' argument doesn't seem to get honored at all.


- Lenguaje dominante
- Python
- Estrellas
- 1.5k
- Forks
- 787
- Métricas de merge de PR
- Sin PR fusionados en 30 d
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.
Más de robotframework/SeleniumLibrary
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
robotframework/SeleniumLibrary#1941 · 3 comentarios ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
robotframework/SeleniumLibrary#1833 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
robotframework/SeleniumLibrary#1436 · 5 comentarios ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
robotframework/SeleniumLibrary#1993 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
robotframework/SeleniumLibrary#1992 · 4 comentarios ·
Todos los issues de robotframework/SeleniumLibrary
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
stephrobert/dsoxlab#238 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
sublimehq/package_control#1780 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
nwg-piotr/nwg-displays#145 ·