Skip to content

Commit

Permalink
tests: Migrate deprecated selenium desired_capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
kumy committed Feb 20, 2024
1 parent 05cc57d commit 4583956
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests-qa/acceptance/ressources/Browser.robot
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ ${HEADLESS} ${True}
Log Open Browser Firefox

${firefox_options} = Evaluate sys.modules['selenium.webdriver'].firefox.webdriver.Options() sys, selenium.webdriver
Call Method ${firefox_options} add_argument strictFileInteractability ${FALSE}
Call Method ${firefox_options} add_argument timezone UTC-05:00

Run Keyword If ${HEADLESS}
... Call Method ${firefox_options} add_argument -headless
${dc} Evaluate sys.modules['selenium.webdriver'].DesiredCapabilities.FIREFOX sys, selenium.webdriver
Set To Dictionary ${dc} strictFileInteractability=${FALSE}
Set To Dictionary ${dc} timezone=UTC-05:00
Create Webdriver Firefox options=${firefox options} desired_capabilities=${dc}

Create Webdriver Firefox options=${firefox options}

# !Open GeoKrety Browser Chrome
# [Tags] robot:private
Expand Down

0 comments on commit 4583956

Please sign in to comment.