12Aug/08Off
Q. How do I simulate a user pressing 'Enter'?
A. Use the send_keys method ...
Example watir:
@b.goto("http://www.google.com") @b.text_field(:name, 'q').set('foobar') @b.send_keys("{ENTER}")
A. Use the send_keys method ...
Example watir:
@b.goto("http://www.google.com") @b.text_field(:name, 'q').set('foobar') @b.send_keys("{ENTER}")