sclevine / agouti

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

Agouti fails to start session with opera #165

Closed jramonrod closed 6 years ago

jramonrod commented 6 years ago

I am new to agouti and I'm attempting to connect to a webpage using opera. I receive the following error: failed to retrieve URL: unexpected response: {"sessionId":"367618b8e732320dbe07c39f973e22ea","status":6,"value":{"message":"no such session\n (Driver info: OperaDriver=2.36 (bf69a2a4687a45dedaabd6155fd52bb0b7eb10c5),platform=Linux 4.15.6-1.el7.elrepo.x86_64 x86_64)"}} The code that it causing this issue is the following:

Expect(page.Navigate("https://google.com")).To(Succeed()) Expect(page).To(HaveURL("https://google.com"))

This works fine if i set the browser to chrome or firefox but fails with opera even though it seems to find the opera binary, otherwise it would complain about not being able to connect to webdriver

jramonrod commented 6 years ago

Solved was missunderstanding structure of capabilities and didn't realize i had to add operaOptions myself