MCPcopy Create free account
hub / github.com/tebeka/selenium / setDriverPaths

Function setDriverPaths

remote_test.go:94–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92}
93
94func setDriverPaths() error {
95 if *selenium3Path == "" {
96 *selenium3Path = findBestPath("vendor/selenium-server*" /*binary=*/, false)
97 }
98
99 if *geckoDriverPath == "" {
100 *geckoDriverPath = findBestPath("vendor/geckodriver*" /*binary=*/, true)
101 }
102
103 if *chromeDriverPath == "" {
104 *chromeDriverPath = findBestPath("vendor/chromedriver*" /*binary=*/, true)
105 }
106
107 return nil
108}
109
110func pickUnusedPort() (int, error) {
111 addr, err := net.ResolveTCPAddr("tcp", "127.0.0.1:0")

Callers 1

TestMainFunction · 0.85

Calls 1

findBestPathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…