Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

datarecall's avatar

Help Confirming Dusk Bug

Could someone please try this dusk test for me:

    /** @test */
    public function it_fails_on_back()
    {
        $this->expectException(UnknownErrorException::class);
        $this->browse(function (Browser $browser) {
            $browser->visit('https://google.com')
                ->visit('https://bing.com')
                ->back()
                ->screenshot('test');
        });
    }

For some reason whenever I use ->back or ->forward with dusk it throws an error

Facebook\WebDriver\Exception\UnknownErrorException: unknown error: unhandled inspector error: {"code":-32000,"message":"Unable to capture screenshot"}
  (Session info: chrome=102.0.5005.61)
0 likes
0 replies

Please or to participate in this conversation.