I use Cucumber, watir-webdriver, page-object and jruby. I am writing a method in a page class that injects a value into a text area. I use the generated method in stone page-object, which, under the hood, calls the Watir-Webdriver method set, which in turn calls the send_keyselement.
In any case, the problem for me is that I am trying to add a VERY BIG STRING (to check the maximum size properties for a valid object). This is 4000 characters and takes a noticeable amount of time to enter.
It would be great if there was a way to simply insert the entire line into the text area at once. Is there a way to do this with the technologies that I have? These .. JRuby, watir-webdriver, page-object (which really just passes watir-webdriver). I believe that under the hood is selenium-webdriver, which in any case interacts with the browser driver.
So far, I have not found a path, ultimately using send_keys, which basically sends one key stroke at a time, and therefore a huge character string is a pain.
source
share