G
G
gitdev2021-01-08 18:02:12
PHP
gitdev, 2021-01-08 18:02:12

Codeception does not see html loaded (added) using js, why?

/**
     * @param AcceptanceTester $I
     * @throws Exception
     * @throws \_generated\ModuleException
     */
    public function thesaurusForm(AcceptanceTester $I)
    {
        $I->wantTo('/thesaurus.net form test');
        $I->amOnPage('https://www.thesaurus.net/');
        $I->seeResponseCodeIs(HttpCode::OK);
        sleep(18);
        $I->canSeeElement('Enter your text below and click here to find synonyms');

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