()
| 92 | } |
| 93 | |
| 94 | func 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 | |
| 110 | func pickUnusedPort() (int, error) { |
| 111 | addr, err := net.ResolveTCPAddr("tcp", "127.0.0.1:0") |
no test coverage detected
searching dependent graphs…