简体   繁体   中英

Laravel Dusk $browser->attach() no longer working after machine upgrade

So I recently moved my dev environment from my old to new MBpro and noticed that all of the tests written with the $browser->attach() method have started failing with the following error message:

Facebook\WebDriver\Exception\UnrecognizedExceptionException: invalid argument: 'text' is empty
  (Session info: headless chrome=80.0.3987.132)
  (Driver info: chromedriver=80.0.3987.106 (f68069574609230cf9b635cd784cfb1bf81bb53a-refs/branch-heads/3987@{#882}),platform=Mac OS X 10.15.2 x86_64)

The project is running Laravel Framework 5.6.39 and I have made sure to update the Chromedrive binaries (using staudenmeir/dusk-updater). I have checked and double-checked that the attach() is being used correctly and have exhausted my ideas of what could be causing the unwanted behavior. All of the other dusk methods are working as designed. Any help would be much appreciated.

我有同样的问题,但运行 chrome/chromedriver 版本 79。升级到版本 81 没有区别,但是当我运行composer update并确保我有正确的 chromedriver 二进制文件(在我的情况下,在 vendor/laravel/dusk/bin/chromedriver_linux ) 问题消失了。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM