Re: [wtr-general] Simulate keystroke with watir-webdriver

2011-04-04 Thread Jari Bakken
On Mon, Apr 4, 2011 at 11:46 AM, Dan Claudiu Pop
 wrote:
> Hello,
>
> Is there a way to simulate keystroke with watir-webdriver.
> I know that, recently Jarib pushed send_keys method.
> Does it simulate keystroke as well ?
> I've tried all kind of combinations, including ascii, but no success.
> browser.send_keys('{F11}')
>

The API is slightly different:

  browser.send_keys :f11

or e.g.

  browser.text_field.send_keys [:control, 'a'], :backspace

You can see the full list of available keys here: http://goo.gl/DTZ9g

Jari

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Simulate keystroke with watir-webdriver

2011-04-04 Thread Dan Claudiu Pop
Hello,

Is there a way to simulate keystroke with watir-webdriver.
I know that, recently Jarib pushed send_keys method.
Does it simulate keystroke as well ?
I've tried all kind of combinations, including ascii, but no success.
browser.send_keys('{F11}')

Thank you,
Dan

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com