Skip to content

Commit 5b5c598

Browse files
committed
Update atests some with preconfigured webdriver
1 parent 62e0d2b commit 5b5c598

6 files changed

Lines changed: 13 additions & 5 deletions

File tree

atest/acceptance/2-event_firing_webdriver/event_firing_webdriver.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Open Browser To Start Page
1515
... LOG 1:20 DEBUG Wrapping driver to event_firing_webdriver.
1616
... LOG 1:22 INFO Got driver also from SeleniumLibrary.
1717
Open Browser ${FRONT PAGE} ${BROWSER} remote_url=${REMOTE_URL}
18-
... desired_capabilities=${DESIRED_CAPABILITIES}
18+
... executable_path=%{WEBDRIVERPATH}
1919

2020
Event Firing Webdriver Go To (WebDriver)
2121
[Tags] NoGrid

atest/acceptance/create_webdriver.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Library Collections
77
Create Webdriver Creates Functioning WebDriver
88
[Documentation]
99
... LOG 1:1 INFO REGEXP: Creating an instance of the \\w+ WebDriver.
10-
... LOG 1:8 DEBUG REGEXP: Created \\w+ WebDriver instance with session id (\\w|-)+.
10+
... LOG 1:25 DEBUG REGEXP: Created \\w+ WebDriver instance with session id (\\w|-)+.
1111
[Tags] Known Issue Internet Explorer Known Issue Safari
1212
[Setup] Set Driver Variables
1313
Create Webdriver ${DRIVER_NAME} kwargs=${KWARGS}

atest/acceptance/keywords/page_load_timeout.robot

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ Test Teardown Close Browser And Reset Page Load Timeout
77
*** Test Cases ***
88
Should Open Browser With Default Page Load Timeout
99
[Documentation] Verify that 'Open Browser' changes the page load timeout.
10-
... LOG 1.1.1:16 DEBUG REGEXP: POST http://localhost:\\d{2,5}/session/[a-f0-9-]+/timeouts {"pageLoad": 300000}
11-
... LOG 1.1.1:18 DEBUG STARTS: Remote response: status=200
10+
... LOG 1.1.1:33 DEBUG REGEXP: POST http://localhost:\\d{2,5}/session/[a-f0-9-]+/timeouts {"pageLoad": 300000}
11+
... LOG 1.1.1:35 DEBUG STARTS: Remote response: status=200
12+
# ... LOG 1.1.1:16 DEBUG REGEXP: POST http://localhost:\\d{2,5}/session/[a-f0-9-]+/timeouts {"pageLoad": 300000}
13+
# ... LOG 1.1.1:18 DEBUG STARTS: Remote response: status=200
1214
Open Browser To Start Page
1315

1416
Should Run Into Timeout Exception

atest/acceptance/multiple_browsers_options.robot

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Chrome Browser With Selenium Options As String
1313
... LOG 1:3 DEBUG GLOB: *args": ["--disable-dev-shm-usage"?*
1414
Open Browser ${FRONT PAGE} ${BROWSER} remote_url=${REMOTE_URL}
1515
... desired_capabilities=${DESIRED_CAPABILITIES} options=add_argument("--disable-dev-shm-usage")
16+
... executable_path=%{WEBDRIVERPATH}
1617

1718
Chrome Browser With Selenium Options As String With Attirbute As True
1819
[Documentation]
@@ -21,6 +22,7 @@ Chrome Browser With Selenium Options As String With Attirbute As True
2122
... LOG 1:3 DEBUG GLOB: *"--headless"*
2223
Open Browser ${FRONT PAGE} ${BROWSER} remote_url=${REMOTE_URL}
2324
... desired_capabilities=${DESIRED_CAPABILITIES} options=add_argument ( "--disable-dev-shm-usage" ) ; headless = True
25+
... executable_path=%{WEBDRIVERPATH}
2426

2527
Chrome Browser With Selenium Options With Complex Object
2628
[Tags] NoGrid
@@ -30,6 +32,7 @@ Chrome Browser With Selenium Options With Complex Object
3032
... LOG 1:3 DEBUG GLOB: *args": ["--disable-dev-shm-usage"?*
3133
Open Browser ${FRONT PAGE} ${BROWSER} remote_url=${REMOTE_URL}
3234
... desired_capabilities=${DESIRED_CAPABILITIES} options=add_argument ( "--disable-dev-shm-usage" ) ; add_experimental_option( "mobileEmulation" , { 'deviceName' : 'Galaxy S5'})
35+
... executable_path=%{WEBDRIVERPATH}
3336

3437
Chrome Browser With Selenium Options Object
3538
[Documentation]
@@ -38,11 +41,13 @@ Chrome Browser With Selenium Options Object
3841
${options} = Get Chrome Options
3942
Open Browser ${FRONT PAGE} ${BROWSER} remote_url=${REMOTE_URL}
4043
... desired_capabilities=${DESIRED_CAPABILITIES} options=${options}
44+
... executable_path=%{WEBDRIVERPATH}
4145

4246
Chrome Browser With Selenium Options Invalid Method
4347
Run Keyword And Expect Error AttributeError: 'Options' object has no attribute 'not_here_method'
4448
... Open Browser ${FRONT PAGE} ${BROWSER} remote_url=${REMOTE_URL}
4549
... desired_capabilities=${DESIRED_CAPABILITIES} options=not_here_method("arg1")
50+
... executable_path=%{WEBDRIVERPATH}
4651

4752

4853
Chrome Browser With Selenium Options Argument With Semicolon
@@ -51,3 +56,4 @@ Chrome Browser With Selenium Options Argument With Semicolon
5156
... LOG 1:3 DEBUG GLOB: *["has;semicolon"*
5257
Open Browser ${FRONT PAGE} ${BROWSER} remote_url=${REMOTE_URL}
5358
... desired_capabilities=${DESIRED_CAPABILITIES} options=add_argument("has;semicolon")
59+
... executable_path=%{WEBDRIVERPATH}

atest/acceptance/open_and_close.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Browser Open With Not Well-Formed URL Should Close
2020
... LOG 1.1:24 DEBUG REGEXP: .*but failed to open url.*
2121
... LOG 2:2 DEBUG STARTS: DELETE
2222
... LOG 2:5 DEBUG STARTS: Finished Request
23-
Run Keyword And Expect Error * Open Browser bad.url.bad ${BROWSER}
23+
Run Keyword And Expect Error * Open Browser bad.url.bad ${BROWSER} executable_path=%{WEBDRIVERPATH}
2424
Close All Browsers
2525

2626
Switch to closed browser is possible
File renamed without changes.

0 commit comments

Comments
 (0)