Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Codeception pressKey ENTER does not work

I am not familiar with codeception. I am trying to insert a text in an input field and press the ENTER button.

$I->fillField('#token-input-yw1', 'Some string');
$I->pressKey('#token-input-yw1', 13);

The text is entered but the enter key is not pressed. Any ideas?

like image 783
buerma Avatar asked Jun 13 '13 08:06

buerma


1 Answers

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);
like image 152
pwl Avatar answered Sep 30 '22 09:09

pwl