Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Call to undefined method Facebook\Webdriver\Remote\RemoteWebDriver::getCapabilities() #385

Closed
masterwto opened this issue Oct 9, 2017 · 6 comments

Comments

@masterwto
Copy link
Contributor

I upgraded my laravel vendor and run the tests, then got this error.

I then fall back the Facebook Webdriver and it works OK.

@masterwto
Copy link
Contributor Author

php 7.1.8
mariadb 10.2
laravel 5.5.14
Facebook\webdriver 1.1.1

@masterwto
Copy link
Contributor Author

I think it's related to newest composer. My composer is recently newly installed, and I found I got Facebook\Webdriver of version 1.1.1. In fact, Facebook\Webdriver\Remote\RemoteWebDriver::getCapabilities() is introduced in version 1.3.

updating composer.json may help.

@dborovsky
Copy link

I installed dusk and facebook/webdriver has version 1.4.1 and i got same error.

@masterwto
Copy link
Contributor Author

@dborovsky
1.3 is working fine.

@josensanchez
Copy link

josensanchez commented Mar 26, 2018

if this keep happening to anybody... in my case was

Problem 1
- facebook/webdriver 1.5.x-dev requires ext-zip

and because of that, composer updates webdriver to 1.2 only.

run
$ composer require facebook/webdriver

maybe it's this or some other dependency that is missing.

@pacoorozco
Copy link

As @josensanchez mentioned you need facebook/webdriver version 1.5+ but if you're trying to do a composer update facebook/webdriver and 1.5 is not installed, please assure yourself you have installed PHP zip extension.

In my ubuntu:

$ apt install php-zip
$ composer update facebook/webdriver
  - Updating facebook/webdriver (1.2.0 => 1.6.0): Downloading (100%)
$ php artisan dusk

Now, It's working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants