标签: javascript codeception
在代码中,我无法使用:
executeJS ('return $("span.inline.field.credit .wrapper span:nth-child(2)").innerText');
但是同样的指令在浏览器控制台中产生了null:
$I->executeJS('return $("span.inline.field.credit .wrapper span:nth-child(2)").innerText');