Add NewSeleniumServiceV4 to support cli args for selenium version 4#275
Add NewSeleniumServiceV4 to support cli args for selenium version 4#275Prendo93 wants to merge 1 commit intotebeka:masterfrom
NewSeleniumServiceV4 to support cli args for selenium version 4#275Conversation
|
Would it be possible to merge this? @minusnine |
| return s, nil | ||
| } | ||
|
|
||
| func NewSeleniumServiceV4(jarPath string, port int, opts ...ServiceOption) (*Service, error) { |
There was a problem hiding this comment.
Please add a documentation comment.
https://github.com/golang/go/wiki/CodeReviewComments#doc-comments
| return s, nil | ||
| } | ||
|
|
||
| func NewSeleniumServiceV4(jarPath string, port int, opts ...ServiceOption) (*Service, error) { |
There was a problem hiding this comment.
|
I'm also not sure that this is correct. The PR uses (same for POST) @Prendo93 did this actually work for you? |
|
Can confirm this is working for me with https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.1.0/selenium-server-4.1.1.jar I think the urlPrefix is named thus because there are other routes called, eg: |
|
Hm, ok. Do you specify a prefix? Or do you omit it? Would you mind posting a quick example where it's running for you? Would help tremendously! Edit: it actually does work! It just doesn't work with the selenium standalone docker images for some reason. |
Selenium V3 seems to now be considered legacy (https://www.selenium.dev/documentation/legacy/selenium_3/). This PR adds NewSeleniumServiceV4 which sets up the service using the new format for v4. During my (admittedly limited) testing it seems to work as a drop-in replacement for Selenium V3 implementation.