How to send key like "ENTER"

23 views
Skip to first unread message

Anuj Gupta

unread,
Jun 30, 2016, 3:29:40 AM6/30/16
to caius-users
Hi,

I want to send the key "ENTER" and not the string as key strokes.

Can you please suggest the way to do that?

Regards
Anuj

tobia...@gmail.com

unread,
Jun 30, 2016, 12:03:15 PM6/30/16
to caius-users
Hi,

use

    $element send_keys $WebDriver::Keys::ENTER

also check the file lib/webdriver/keyboard.tcl in the source distribution.

Best regards,
Tobias

Anuj Gupta

unread,
Jul 1, 2016, 12:52:10 PM7/1/16
to caius-users
Thanks for this information.
Reply all
Reply to author
Forward
0 new messages