无法在代码中执行JS

时间:2016-09-29 13:57:45

标签: javascript codeception

在代码中,我无法使用:

执行JavaScript
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');

0 个答案:

没有答案