-
Notifications
You must be signed in to change notification settings - Fork 783
Expand file tree
/
Copy pathmultiple_browsers_service.robot
More file actions
48 lines (44 loc) · 2.5 KB
/
multiple_browsers_service.robot
File metadata and controls
48 lines (44 loc) · 2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
*** Settings ***
Suite Teardown Close All Browsers
Library ../resources/testlibs/get_driver_path.py
Resource resource.robot
Test Tags SKIP_ON_WINDOWS
# Force Tags Known Issue Firefox Known Issue Safari Known Issue Internet Explorer
Documentation Creating test which would work on all browser is not possible.
... These tests are for Chrome only.
*** Test Cases ***
Chrome Browser With Chrome Service As String
[Documentation]
... LOG 2:3 DEBUG STARTS: Started executable:
... LOG 2:4 DEBUG GLOB: POST*/session*
[Tags] Known Issue Firefox Known Issue Safari Known Issue Internet Explorer
${driver_path}= Get Driver Path Chrome
Open Browser ${FRONT PAGE} Chrome remote_url=${REMOTE_URL}
... service=executable_path='${driver_path}'
Chrome Browser With Chrome Service As String With service_args As List
[Tags] Known Issue Firefox Known Issue Safari Known Issue Internet Explorer
Open Browser ${FRONT PAGE} Chrome remote_url=${REMOTE_URL}
... service=service_args=['--append-log', '--readable-timestamp']; log_output='${OUTPUT_DIR}/chromedriverlog.txt'
File Should Exist ${OUTPUT_DIR}/chromedriverlog.txt
# ... service=service_args=['--append-log', '--readable-timestamp']; log_output='./'
# ... service=service_args=['--append-log', '--readable-timestamp']
Firefox Browser With Firefox Service As String
[Tags] Known Issue Chrome Known Issue Safari Known Issue Internet Explorer
[Documentation]
... LOG 2:3 DEBUG STARTS: Started executable:
... LOG 2:4 DEBUG GLOB: POST*/session*
${driver_path}= Get Driver Path Firefox
Open Browser ${FRONT PAGE} Firefox remote_url=${REMOTE_URL}
... service=executable_path='${driver_path}'
#Chrome Browser With Selenium Options Invalid Method
# Run Keyword And Expect Error AttributeError: 'Options' object has no attribute 'not_here_method'
# ... Open Browser ${FRONT PAGE} ${BROWSER} remote_url=${REMOTE_URL}
# ... desired_capabilities=${DESIRED_CAPABILITIES} options=not_here_method("arg1")
#
#
#Chrome Browser With Selenium Options Argument With Semicolon
# [Documentation]
# ... LOG 1:14 DEBUG GLOB: *"goog:chromeOptions"*
# ... LOG 1:14 DEBUG GLOB: *["has;semicolon"*
# Open Browser ${FRONT PAGE} ${BROWSER} remote_url=${REMOTE_URL}
# ... desired_capabilities=${DESIRED_CAPABILITIES} options=add_argument("has;semicolon")