Php 在Codeception中选择自动填充下拉列表

Php 在Codeception中选择自动填充下拉列表,php,codeception,Php,Codeception,例如: 代码: 我不想使用webdriver,Codeception或PHP中有什么可能的方法吗?如果不使用webdriver,就不可能在PHP中测试Javascript代码 $I = new AcceptanceTester($scenario); $I->wantTo('Check Drop Down'); $I->amOnPage('http://phppot.com/demo/jquery-dependent-dropdown-list-countries-and-stat

例如:
代码:


我不想使用
webdriver
,Codeception或PHP中有什么可能的方法吗?

如果不使用webdriver,就不可能在PHP中测试Javascript代码

$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');