![](/img/trans.png)
[英]codeception with selenium webDriver gives an error for systemProperty
[英]Selenium webdriver tests with PHP and Codeception stops mid test with no error message
我得到了這個測試:
<?php
$I = new WebGuy($scenario);
$I->wantTo('ensure that user can log in to Nova.');
$I->amOnPage('/');
$I->see('ABC');
// Login
$I->fillField("//input[@name='email']", "test@mail.com"); //<-- Test stops here!
$I->wait(1000);
$I->fillField("//input[@name='password']", "Apassword");
$I->click("//input[@name='save']");
$I->see("Test");
?>
上的測試執行將填寫電子郵件字段,然后停止。 如果我將密碼字段與電子郵件字段切換,則僅在相應字段中輸入密碼,然后測試將停止。 代碼對我來說看起來不錯。 有人知道嗎?
刪除等待命令將不起作用,因為它甚至在到達等待命令之前就停止了。 出於測試目的,您還嘗試過使用:
$I->wait(1000);
之前
$I->fillField("//input[@name='email']", "test@mail.com"); //<-- Test stops here!
還是實際上填寫了電子郵件但沒有填寫密碼?
抱歉,無法僅評論答案> <
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.