clickAtXPath not working in laravel(5.8) Dusk

85 Views Asked by At

Dusk Error

Dusk is throwing this error while using clickAtXPath

  • BadMethodCallException: Call to undefined method [clickAtXPath].
1

There are 1 best solutions below

3
James On

The error is telling you that the clickAtXPath method does not exist on whatever you're calling it from.

Looking at Laravel Dusk in 5.8, there is no clickAtXPath documented; https://laravel.com/docs/5.8/dusk#using-the-mouse

Looking through their docs, it looks like it was introduced in Laravel 7; https://laravel.com/docs/7.x/dusk#using-the-mouse

You will need to update your application if you'd like to use clickAtXPath.