Laravel Dusk:未知错误:调用函数结果缺少“值" [英] Laravel Dusk: unknown error: call function result missing 'value'

查看:211
本文介绍了Laravel Dusk:未知错误:调用函数结果缺少“值"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Laravel Dusk的type()和value()方法上遇到问题.我收到以下错误.

I'm having problems with the Laravel Dusk type() and value() method. I'm getting the following error.

$ php artisan dusk --group=activation
Warning: TTY mode is not supported on Windows platform.
PHPUnit 5.7.27 by Sebastian Bergmann and contributors.


DevTools listening on ws://127.0.0.1:12599/devtools/browser/84028821-2ca1-4d26-b66c-4697d2302117
E                                                                   1 / 1 (100%)

Time: 13,35 seconds, Memory: 18,00MB

There was 1 error:

1) Tests\Browser\CounselorActivationTest::testActivationWithSubscriptionWithPasswordLogin
Facebook\WebDriver\Exception\UnknownServerException: unknown error: call function result missing 'value'
  (Session info: chrome=68.0.3440.84)
  (Driver info: chromedriver=2.33.506120 (e3e53437346286c0bc2d2dc9aa4915ba81d9023f),platform=Windows NT 10.0.17134 x86_64)

D:\devYubu\yubu\vendor\facebook\webdriver\lib\Exception\WebDriverException.php:114
D:\devYubu\yubu\vendor\facebook\webdriver\lib\Remote\HttpCommandExecutor.php:326
D:\devYubu\yubu\vendor\facebook\webdriver\lib\Remote\RemoteWebDriver.php:547
D:\devYubu\yubu\vendor\facebook\webdriver\lib\Remote\RemoteWebDriver.php:308
D:\devYubu\yubu\vendor\laravel\dusk\src\Concerns\InteractsWithElements.php:97
D:\devYubu\yubu\tests\Browser\tests\userActivation\CounselorActivationTest.php:58
D:\devYubu\yubu\vendor\laravel\dusk\src\TestCase.php:91
D:\devYubu\yubu\tests\Browser\tests\userActivation\CounselorActivationTest.php:95

ERRORS!
Tests: 1, Assertions: 0, Errors: 1.

我使用了值方法2次,可以看到第一个实际上填写了表格,但是第二个却失败了.

I'm using the value method 2 times, I can see that the first one actually fills in the form, however the second one fails..

->value('input[name=external_id]', $counselor->getAttribute(User::COLUMN_EXTERNAL_ID))
->value('input[name=name_full]', $counselor->getAttribute(User::COLUMN_NAME_FULL))

当我使用type()时,第一个也会失败:

When I'm using type(), the first one also fails:

->type('external_id', $counselor->getAttribute(User::COLUMN_EXTERNAL_ID))
->type('name_full', $counselor->getAttribute(User::COLUMN_NAME_FULL))

在使用Windows 10时,我在Windows上运行Dusk(已安装PHP 7.2).我的应用程序在PHP 7.0的Homestead上运行.我正在使用Laravel 5.4

In using Windows 10. I'm running Dusk on Windows (I have PHP 7.2 installed). My application runs on Homestead with PHP 7.0. I'm using Laravel 5.4

推荐答案

这是过时的ChromeDriver的问题.

This was a problem with an outdated ChromeDriver.

非常感谢Jonas Staudenmeir,他创建了一个用于更新您的Chromedriver的软件包:

Big thanks to Jonas Staudenmeir, who has created a package for updating your Chromedriver:

https://github.com/staudenmeir/dusk-updater

这篇关于Laravel Dusk:未知错误:调用函数结果缺少“值"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆