Modelizer / Laravel-Selenium

Selenium Testing for Laravel 5
MIT License
108 stars 33 forks source link

unknown error: cannot get automation extension (Found workaround) #45

Closed LarryEitel closed 6 years ago

LarryEitel commented 7 years ago

Unable to run basic test. Using Laravel 5.5 on Windows 10.

unknown error: cannot get automation extension
from unknown error: page could not be found: chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html
  (Session info: chrome=61.0.3163.100)
  (Driver info: chromedriver=2.24.417431 (9aea000394714d2fbb20850021f6204f2256b9cf),platform=Windows NT 10.0.15063 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 10.03 seconds
Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03'
System info: host: 'asus', ip: '10.0.75.1', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_144'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, networkConnectionEnabled=false, chrome={chromedriverVersion=2.24.417431 (9aea000394714d2fbb20850021f6204f2256b9cf), userDataDir=C:\Users\Larry\AppData\Local\Temp\scoped_dir13440_18339}, takesHeapSnapshot=true, pageLoadStrategy=normal, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=61.0.3163.100, platform=XP, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]

More searching revealed work around:

Comment out line: vendor/modelizer/selenium/src/SeleniumTestCase.php:53

For more info, visit: https://stackoverflow.com/a/45459039/913295

p3tr1q commented 7 years ago

Thanks, commenting that line helped. I found that a solution could be updating the chromedriver, but i don't know how to do it, since i don't understand where it was saved by settings from ../config/drivers.php.

Modelizer commented 7 years ago

It get saved in vender/bin directory.

@p3tr1q you can raise a PR to alter config/drivers.php file with the latest version of chrome driver setting.