Skip to content

Commit e6aff34

Browse files
committed
Initial atest for remote browsers without options
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 #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.
1 parent b933ea3 commit e6aff34

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
*** Settings ***
2+
Library SeleniumLibrary
3+
Library Process
4+
5+
*** Variables ***
6+
${URL} https://robotframework.org/
7+
${REMOTE_BETA} http://localhost:7272
8+
9+
*** Test Cases ***
10+
Open Chrome with Remote Webdriver without Options
11+
# [Setup] StartDriver chromedriver
12+
Open Browser
13+
... url=${URL}
14+
... browser=chrome
15+
... remote_url=${REMOTE_BETA}
16+
# [Teardown] Stop Driver
17+
18+
Open Edge with Remote Webdriver without Options
19+
# [Setup] StartDriver msedgedriver
20+
Open Browser
21+
... url=${URL}
22+
... browser=edge
23+
... remote_url=${REMOTE_BETA}
24+
# [Teardown] Stop Driver
25+
26+
*** Keywords ***
27+
Start Driver
28+
[Arguments] ${driver_cmd}
29+
Start Process ${driver_cmd} --port:7272
30+
${result}= Wait For Process timeout=30secs
31+
Process Should Be Running error_message=Unable to start driver with command ${driver_cmd}
32+
33+
Stop Driver
34+
Terminate Process

0 commit comments

Comments
 (0)