Skip to content

Difference between visit() and get() #175

@nikophil

Description

@nikophil

Hello,

what's the difference between visit() and get()?

I've been struggling to use a connected user this way:

        $this->browser()
            ->setDefaultHttpOptions(
                (new HttpOptions())->withServer(
                    [
                        'PHP_AUTH_USER' => 'username',
                        'PHP_AUTH_PW' => 'pa$$word',
                    ]
                )
            )
            ->visit("/url/behind/firewall")

but using get() instead of visit() works perfectly!

I'm not 100% sure what's going on here. Any idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions