public function _createEmptyModule(WebGuy $I) { $I->canSee('Create empty root element'); $I->wait(2); $I->click('.typeaheadName'); $I->waitForElement('.typeahead'); $I->click('interfaces'); $I->click('.typeaheadNS'); $I->expectTo('see only one available NS'); $I->seeNumberOfElements('.typeaheadNS + .typeahead a', 1); $I->click('urn:ietf:params:xml:ns:yang:ietf-interfaces'); $I->click('Create'); $I->waitForText('interfaces'); }
<?php $I = new WebGuy($scenario); include 'constant.php'; $I->wantTo('Reset my password'); $I->amOnPage('/'); $I->click(LoginPopUp::$loginPopup); $I->waitForText('Create account'); $I->click(ForgotPopUp::$passwordLink); $I->waitForText('Forgot password'); $I->wait(1); $I->waitForElement(ForgotPopUp::$emailField); $I->seeElement(ForgotPopUp::$emailField); $I->seeElement(ForgotPopUp::$resetButton); $I->fillField(ForgotPopUp::$emailField, $email); $I->click(ForgotPopUp::$resetButton); $I->waitForText('Reset password link was sent on your e-mail address');
<?php $I = new WebGuy($scenario); include 'constant.php'; $I->wantTo('Check My mail Box'); $I->amOnUrl('http://temp-mail.ru/option/change'); $I->fillField('//*[@id="input_mail"]', $mail); $I->click('//*[@id="postbut"]'); $I->wait(1); $I->click('//*[@id="click-to-refresh"]'); $I->click('//*[@id="mails"]/tbody/tr/td[2]/a'); $I->waitForElement('//*[@id="templateBody"]/tbody/tr/td/table/tbody/tr[2]/td/table/tbody/tr/td/div/a'); $I->click('//*[@id="templateBody"]/tbody/tr/td/table/tbody/tr[2]/td/table/tbody/tr/td/div/a'); $I->waitForText('Create account'); $I->see('Create account'); $I->see('Forgot password?'); $I->seeElement('#email'); $I->seeElement('$password'); $I->seeElement('#loginButton');