Skip to content

Commit

Permalink
Added addition tests with complex selenium options on Open Browser
Browse files Browse the repository at this point in the history
…keyword

Put in and triaged a couple of tests that came from a question wiuthin the slack channels. Can one convert a complex selenium
options argument that uses a dictionary into a similarly complex options which just uses the options string and get the same resulting
browser? Triaging at th moemnt as these need more asertations to verify they are the same.
  • Loading branch information
emanlove committed Jan 14, 2024
1 parent 66aabbd commit e8b3234
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions atest/acceptance/multiple_browsers_options.robot
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,14 @@ Chrome Browser with Selenium Options With A Missing Semicolon
Run Keyword And Expect Error ValueError: Unable to parse option: "add_argument ( "--disable-dev-shm-usage" ) add_argument ( "--headless=new" )"
... Open Browser ${FRONT PAGE} ${BROWSER} remote_url=${REMOTE_URL}
... desired_capabilities=${DESIRED_CAPABILITIES} options=add_argument ( "--disable-dev-shm-usage" ) add_argument ( "--headless=new" )

Complex Selenium Options Using Create Dictionary
[Tags] Triage
${Prefs}= Create Dictionary profile.default_content_settings.popups=0, download.default_directory=r"C:\\Users\\me\\test_downloads",download.prompt_for_download:False
Open Browser about:blank Chrome alias=UserCreateDict
... options=add_argument("--disable-popup-blocking"); add_argument("--ignore-certificate-errors"); add_argument("--disable-gpu"); add_argument("--disable-dev-shm-usage"); add_argument("--no-sandbox");add_argument("--disable-proxy-certificate-handler");add_experimental_option("prefs", ${Prefs})

Complex Selenium Options Using Options String
[Tags] Triage
Open Browser about:blank Chrome alias=UserCreateStr
... options=add_argument("--disable-popup-blocking"); add_argument("--ignore-certificate-errors"); add_argument("--disable-gpu"); add_argument("--disable-dev-shm-usage"); add_argument("--no-sandbox");add_argument("--disable-proxy-certificate-handler");add_experimental_option("prefs", { 'profile.default_content_settings.popups' : 0 ; 'download.default_directory' : r"C:\\Users\\me\\test_downloads" ; 'download.prompt_for_download' : False } )

0 comments on commit e8b3234

Please sign in to comment.