Answer the question
In order to leave comments, you need to log in
Does js work in codeception?
I'm trying to test a login page with e-mail and password validation. Validation goes through js, if errors are noticed, they are displayed in .
$I->fillField("username", "d");
$I->fillField("password", "00000000");
$I->click("signin");
$I->seeElement("#jserror_input-login",["style" => "clear:both;padding-left:100px;"]);
display:none;clear:both;padding-left:100px
Answer the question
In order to leave comments, you need to log in
If you need to use js in codeception, you need a web driver (+ firefox or phantomJS), there is an executeJS method, always when other methods do not work correctly, I use it in conjunction with jquery
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question