comment('I navigate to Weblinks page in /administrator/'); $I->amOnPage('administrator/index.php?option=com_weblinks'); $I->waitForText('Web Links', '30', ['css' => 'h1']); $I->comment('I see weblinks page'); $I->comment('I try to save a weblink with a filled title and URL'); $I->click('New'); $I->waitForText('Web Link: New', '30', ['css' => 'h1']); $I->fillField(['id' => 'jform_title'], $title); $I->fillField(['id' => 'jform_url'], $url); $I->click(['xpath' => "//button[@onclick=\"Joomla.submitbutton('weblink.save')\"]"]); $I->waitForText('Web link successfully saved', '30', ['id' => 'system-message-container']); } }