bue*_*rma 3 enter webdriver selenium-webdriver codeception
我不熟悉代码.我试图在输入字段中插入文本,然后按ENTER按钮.
$I->fillField('#token-input-yw1', 'Some string');
$I->pressKey('#token-input-yw1', 13);
Run Code Online (Sandbox Code Playgroud)
输入文本但未按下回车键.有任何想法吗?
小智 9
If anyone still have problem with pressing Enter key, here is a solution: (if you are using Webdriver with Selenium)
$I->pressKey('#input',WebDriverKeys::ENTER);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7241 次 |
| 最近记录: |