see("UserName"));die(); try{ $I->amOnPage('/'); $I->fillField('username', $user); $I->fillField('psd', $pass); $I->click('Login'); $I->wait('3'); }catch(\Exception $e){ $I->makeScreenshot('screen/0_login'); } # Catv try{ $I->amOnPage('/catv.asp'); $I->wait('3'); $I->click("(//*[@name='catv_enabled'])"); $I->wait('5'); $I->click('Apply Changes'); $I->wait('5'); $I->see('Change setting successfully!'); $I->click('OK'); }catch(\Exception $e){ $I->makeScreenshot('screen/6_action'); } $I->wait('3'); $I->amOnPage('/boaform/admin/formLogout'); } }