J
J
jazzus2019-02-12 22:59:38
Laravel
jazzus, 2019-02-12 22:59:38

Why is Laravel Dusk not finding text?

Localhost / Laravel / Windows 10 / Laravel Dusk Home
APP_URL=http://domen.ru
page text in h1 tag: Laravel
Run Browser\ExampleTest test
With code

public function testBasicExample()
    {
        $this->browse(function (Browser $browser) {
            $browser->visit('/')
                    ->assertSee('Laravel');
        });
    }

I receive
Did not see expected text [Laravel] within element [body].

but the gopher is there
update
It looks like the problem is related to Laragon and as far as I understand the author of that topic did not find a solution

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question