How to click on an element in PHP-Laravel?

How to click on an element in PHP-Laravel?

Hi Rhian,

To click on an element in PHP-Laravel, add the following snippet in your test file

public function testExample()
    {
        $this->browse(function (Browser $browser) {
            $browser->visit('https://lambdatest.github.io/sample-todo-app/')
                    ->assertTitleContains('Sample page - lambdatest.com')
                    ->press('#addbutton');
        });