symfony / panther

A browser testing and web crawling library for PHP and Symfony
MIT License
2.91k stars 213 forks source link

Error: Call to undefined method Symfony\Component\Panther\Client::assertSelectorIsNotVisible() #618

Open truckee opened 6 months ago

truckee commented 6 months ago

The error message occurred in the test:

namespace tests\Panther;

use Symfony\Component\Panther\PantherTestCase;

class MealTest extends PantherTestCase {

    public function testFoodAddAndRemove() {
        $client = static::createPantherClient();
        $client->followRedirects();
        $client->request('GET', '/meal/1095/edit');
; Symfon
        $this->assertPageTitleContains('Edit Meal');

        $client->assertSelectorIsNotVisible('#ready_foods tr[data-foodid=7]');
...

In the Firefox console, $("#ready_foods tr[data-foodid=7]").is(":visible"); returns false.

Panther is version 2.1.1; Symfony is 6.3.10