sclevine / agouti

A WebDriver client and acceptance testing library for Go
MIT License
822 stars 105 forks source link

Chrome browser crash after being lunched #190

Closed GiuseC closed 5 years ago

GiuseC commented 5 years ago

Hello my name is Giuseppe

I am trying to boot your framework using the guide https://agouti.org/ I have an issue while trying to open the browser using the command page, err := driver.NewPage() Just the few steps that I followed so far:

None of the functions are returning errors and I just see basically the chrome browser being launched and crashed straight after without any exception. My chrome version is Version 71.0.3578.98

Just FYI this is the complete main.go I am using:

driver := agouti.ChromeDriver()
if err := driver.Start(); err != nil {
    log.Fatal("Failed to start driver:", err)
}

page, err := driver.NewPage()
if err != nil {
    log.Fatal("Failed to open page:", err)
}

if err := page.Navigate("https://agouti.org/"); err != nil {
    log.Fatal("Failed to navigate:", err)
}

sectionTitle, err := page.FindByID(`getting-agouti`).Text()
log.Println(sectionTitle)

if err := driver.Stop(); err != nil {
    log.Fatal("Failed to close pages and stop WebDriver:", err)
}

Thank you in advance for your help Giuseppe

GiuseC commented 5 years ago

I manage to make it works, just updating my chrome version to the latest available Version 75.0.3770.142. Now the browser does not crash anymore. Close the issue