Skip to content

Commit

Permalink
Initial atest for remote browsers without options
Browse files Browse the repository at this point in the history
This is an initial attempt/design for a test suite that verifies
"remote" browsers work without options. This is to test against the
issue outlined in robotframework#1855. I have been manually runnning the webdrivers
locally but this second edition is trying to do that in the setup and
then cleanup in the teardown. For some reason this is not working and I
need to investigate further.
  • Loading branch information
emanlove committed Sep 24, 2023
1 parent b933ea3 commit e6aff34
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions atest/acceptance/remote_browsers.robot
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
*** Settings ***
Library SeleniumLibrary
Library Process
*** Variables ***
${URL} https://robotframework.org/
${REMOTE_BETA} http://localhost:7272
*** Test Cases ***
Open Chrome with Remote Webdriver without Options
# [Setup] StartDriver chromedriver
Open Browser
... url=${URL}
... browser=chrome
... remote_url=${REMOTE_BETA}
# [Teardown] Stop Driver
Open Edge with Remote Webdriver without Options
# [Setup] StartDriver msedgedriver
Open Browser
... url=${URL}
... browser=edge
... remote_url=${REMOTE_BETA}
# [Teardown] Stop Driver
*** Keywords ***
Start Driver
[Arguments] ${driver_cmd}
Start Process ${driver_cmd} --port:7272
${result}= Wait For Process timeout=30secs
Process Should Be Running error_message=Unable to start driver with command ${driver_cmd}
Stop Driver
Terminate Process

0 comments on commit e6aff34

Please sign in to comment.