[英]Selecting auto-populate dropdown in Codeception
Example: http://phppot.com/demo/jquery-dependent-dropdown-list-countries-and-states/ 示例: http : //phppot.com/demo/jquery-dependent-dropdown-list-countries-and-states/
Code: 码:
$I = new AcceptanceTester($scenario);
$I->wantTo('Check Drop Down');
$I->amOnPage('http://phppot.com/demo/jquery-dependent-dropdown-list-countries-and-states/');
$I->see('Demo jQuery Dependent DropDown List - Countries and States');
$I->selectOption('country-list', '1');
$I->selectOption('state-list', '16');
I don't want to use webdriver
, is there any possible way in Codeception or PHP? 我不想使用
webdriver
,在Codeception或PHP中有什么可能的方法?
不使用WebDriver,就不可能在PHP中测试Javascript代码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.