And how would you send just some text with Watir-WebDriver, e.g. 'hello'?
send_keys "hello"? So, as i understand then the array's are key combinations
and just a symbol is a special key and string is just as is?

I'd hate to keep something just for backwards compatibility until forever :/

J.

On Sat, Sep 10, 2011 at 8:30 AM, Alister Scott <[email protected]>wrote:

> Hi,
>
> I've noticed there's some differences between the .send_keys method in
> Watir and Watir-WebDriver.
>
> 1) .send_keys only works at the *browser* level in watir, whereas it works
> at the browser and *element* level in watir-webdriver
> 2) .send_keys requires special strings in watir (eg. "{ENTER}") whereas
> send_keys uses chains of symbols (and arrays of symbols) in watir-webdriver
> (eg b.element.send_keys [:control, 'a'], :backspace): full list here:
> http://watirwebdriver.com/sending-special-keys/
>
> I think the watir-webdriver API is better in this regard, so, what do
> people think about incorporating the element level send_keys, and the use of
> symbols into Watir?
> I imagine we'd need to leave the special string support for backwards
> compatibility.
>
> Cheers,
> Alister
>
> Alister Scott
> Brisbane, Australia
> Watir Web Master: http://watir.com
> Blog: http://watirmelon.com
> LinkedIn: http://www.linkedin.com/in/alisterscott
>
> "There are two ways to get enough: One is to continue to accumulate more
> and more. The other is to desire less." *~ G. K. Chesterton*
>
> _______________________________________________
> Wtr-development mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-development
>
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to