Dusk: Keys method is broken after php-webdriver update

Created on 11 Feb 2020  路  6Comments  路  Source: laravel/dusk

  • Dusk Version: v5.9.0
  • Laravel Version: v6.14.0
  • php-webdriver/webdriver Version: 1.8.0
  • PHP Version: 7.4.2
  • Database Driver & Version: MySQL 5.8

Description:

Dusk keys() function is broken after php-webdriver/webdriver update.
Seems that webdriver expects string, but dusk inputs array.

Output from test:
Screenshot 2020-02-11 at 12 32 00

From test:
Screenshot 2020-02-11 at 12 39 36

The keys function:
Screenshot 2020-02-11 at 12 31 02

Screenshot 2020-02-11 at 12 31 14

What webdriver is doing:
Screenshot 2020-02-11 at 12 30 55

Steps To Reproduce:

  1. Install latest Dusk
  2. Update dependencies with "composer update"
  3. Use $this->keys() method inside a Dusk test.
  4. See the test fail with "array to string conversion".
bug

Most helpful comment

We've locked php-webdriver on ^1.7 <1.8 for now until the issues are fixed.

All 6 comments

Also, it seems that dragging (dragLeft, dragRight) is broken, but I cannot create an exception other than nothing happens...

@ahtinurme I've reported this to php-webdriver's repo. Seems like they now automatically enable the w3c protocol which changes the behavior for some methods. Can you weigh in here and also provide the missing versions they ask in the issue? https://github.com/php-webdriver/php-webdriver/issues/758

The dragging issue might be related to https://github.com/php-webdriver/php-webdriver/issues/757. Feel free to also weigh in there with any info you might have.

@driesvints Added my weigh in and following the issues.
Thanks for the quick reply!

We've locked php-webdriver on ^1.7 <1.8 for now until the issues are fixed.

Php-webdriver 1.8.1 which includes the fix has just been released :rocket:

Cool. I've removed the maximum constraint and set 1.8.1 as the new minimum. Will be in tomorrow's release.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hackel picture hackel  路  6Comments

subathanikaikumaran picture subathanikaikumaran  路  3Comments

fwang-laralabs picture fwang-laralabs  路  6Comments

godruoyi picture godruoyi  路  6Comments

alex-LE picture alex-LE  路  7Comments