Open amrutasonawan opened 4 years ago
@tebeka please help me in this.
Hi @amrutasonawan, I no longer maintain the project. @minusnine can you help?
@tebeka thanks for your response. @minusnine can you please help me here.
I got same issue this morning, it was because the driver I used (from the vendor folder here) is not working with Chrome 83+, please try using a matching one according to official website, might solve the issue.
EDIT: In fact the error message was pretty straightforward : unknown error - 33: session not created: This version of ChromeDriver only supports Chrome version 80
`package main
import ( "fmt" "os" "time"
)
func main() { const ( seleniumPath = "some path" chromeDriverPath = "some path" port = 7080 ) opts := []selenium.ServiceOption{ selenium.StartFrameBuffer(), selenium.ChromeDriver(chromeDriverPath), // Specify the path to GeckoDriver in order to use Firefox. selenium.Output(os.Stderr), // Output debug information to STDERR. } selenium.SetDebug(true) service, err := selenium.NewSeleniumService(seleniumPath, port, opts...) if err != nil { panic(err) // panic is used only as an example and is not otherwise recommended. } defer service.Stop()
} `