-
Notifications
You must be signed in to change notification settings - Fork 4
/
full-config-example.yaml
83 lines (68 loc) · 2.86 KB
/
full-config-example.yaml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Required. Define the role of the service: local or hub.
role: local
# Optional. Define the host and port that you want the service to listen to.
# default host: 0.0.0.0
# default port: 4444 (follow the convention of selenium-grid)
host: 0.0.0.0
port: 4444
# Optional. This field is useful when selenium-federation cannot decide its public IP and port correctly.
# You don't need to set this in most case.
# If you need to use this option, please set a url that can be accessed by other machines.
# default: null
# example: http://192.168.1.101:4444
publicUrl:
# Optional. selenium-federation will kill session if no requests is sent to the session longer then this timeout.
# default: 60 (seconds)
sessionIdleTimeout: 60
# Optional. Max concurrency sessions can be run on this node,
# default: #cpu - 1
maxSessions: 5
# Optional. Register this service to a hub node
# default: null
# example: http://192.168.1.100:4444
registerTo:
# Optional. Tags define here can be used to match capabilities via `sf:platformTags`
# default: null
tags:
- mac
- mac-intel
- osx-15
# Optional. Directory to save temporary files
# default: ./tmp
tmpFolder:
# Required(local mode only). List of driver configurations
drivers:
- browserName: chrome # Required, name of browser.
browserVersion: stable # Optional, version of browser
maxSessions: 2 # Optional, max browser sessions that allow to open at the same time, default value: 1
sessionIdleTimeout: 60 # Optional, override the global sessionIdleTimeout
cleanUserData: true # Optional, clean user data after session close, default value: true
tags:
- v102
command: # Required
path: ./chromedrive-102 # Required, path to the webdriver binary, can be global command, relative/absolute path and URL
args: ["--verbose"] # Optional, addtional arguments that you want to use when start webdriver process
envs: # Optional, addtional environment variable that you want to pass to webdriver process
TMP: /tmp
cwd: # Optional, specifiy a working direct to run this command
- browserName: chrome # anther driver configuration
browserVersion: beta
maxSessions: 2
tags:
- v103
command:
path: ./chromedrive-103
defaultCapabilities: # Optional, default capabilities. It will be merged with the requests capabilites
"goog:chromeOptions":
binary: /Applications/Google Chrome Beta.app/Contents/MacOS/Google Chrome Beta
# List of provision tasks
provision:
tasks:
- download: https://registry.npmmirror.com/-/binary/chromedriver/102.0.5005.61/chromedriver_mac64.zip
cmds:
- unzip -o {download_file_path}
- mv chromedriver chromedriver-102
- download: https://registry.npmmirror.com/-/binary/chromedriver/103.0.5060.24/chromedriver_mac64.zip
cmds:
- unzip -o {download_file_path}
- mv chromedriver chromedriver-103