简体   繁体   中英

Selecting auto-populate dropdown in Codeception

Example: 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,就不可能在PHP中测试Javascript代码。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM