v0.10.2 — W3C find mapping + Selenium 4 service
- W3C mode maps:
ByID → #id
ByName → [name="..."] (was only input[name=...])
ByClassName → [class~="..."]
- New
NewSeleniumServiceV4(jarPath, port, opts...) for Selenium 4+ standalone
- Listens at
http://localhost:<port> (no /wd/hub)
- Use that URL as
NewRemote urlPrefix
go get github.com/zninggo/selenium@v0.10.2
Selenium 4 example
svc, err := selenium.NewSeleniumServiceV4("selenium-server-4.x.jar", 4444)
// ...
wd, err := selenium.NewRemote(caps, "http://localhost:4444")