Search code examples
jqueryrubywatirfirewatir

Passing keycode with keydown and keyup events in Watir & FireWatir


I need to automate interaction with a custom jQuery rich text editor in our web client. Having talked with our developers I would only need to be able to fire the following events; keydown, keyup, mousedown, mouseup and paste.

So really need a way of being able to pass a key code with the fire_event keydown and keyup calls for WATIR and FIREWATIR?

Has anyone had any success in doing this?


Solution

  • Have you tried the send_keys method? I know watir-webdriver supports it, and it seems that is rapidly becoming the preferred way of driving firefox