php - wait() 调用 RuntimeException 错误代码接收
问题描述
为我的网站写一个小测试。但是,我的浏览器会降低我的测试速度,所以我需要一个短暂的“超时”,而一切都在那里加载。我尝试使用 .wait(secs),但收到错误消息:
[RuntimeException] 调用未定义的方法 AcceptanceTester::wait
这是我从代码中得到的一切:
class LoginCest
{
public function successFirstTest(AcceptanceTester $I)
{
$I->wantTo("Create test case for login");
$I->amOnPage('link');
// $I->wait(5);
$I->see("wow");
$I->fillField("//input[@name='userIdentifier']", 'myEmail');
$I->click("//button[contains(text(),'Prisijungti')]");
$I->wait(10);
$I->see("thEText");
}
}
解决方案
推荐阅读
- r - 是否有将控制台输出作为字符串返回的 R 函数?
- c - 从键盘线程列表中覆盖的项目
- android - 矢量资源在浮动操作按钮上不可见
- reactjs - 'date' 未定义 javascript react -convert js 做出反应
- python - 可以采用两个参数并删除列表中不属于第二个参数中指定类型的任何对象的函数?
- discord - 设置 GuildMembers 昵称
- javascript - 每次单击新链接时,href链接都会复制路径中的文件夹
- reactjs - 用样式组件反应 SSR
- flutter - Flutter FutureProvider 值未在 Builder 方法中更新
- javascript - Three.js 和 Django?