I tried what you tried in firefox and I'm seeing the same thing I saw with
chrome.
irb(main):014:0>
b.goto("http://derp-bear.herokuapp.com/forms/basic_form_example")
=> "http://derp-bear.herokuapp.com/forms/basic_form_example"
irb(main):015:0> b.text_field(:id, 'free_text_area')
=> #<Watir::TextField:0xc20ebf16383a5b4 located=false
selector={:id=>"free_text_area", :tag_name=>"input or textarea",
:type=>"(any text type)"}>
irb(main):016:0> b.text_field(:id, 'free_text_area').send_keys "hello"
=> ""
irb(main):017:0> b.text_field(:id, 'free_text_area').send_keys [:command,
'a']
=> ""
irb(main):018:0> b.text_field(:id, 'free_text_area').send_keys [:command,
'a']
=> ""
irb(main):019:0> b.text_field(:id, 'free_text_area').send_keys [:command,
'v']
=> ""
It passes like it's doing it, but watching the browser window it's
definitely not selecting all or pasting, although sending "hello" to the
text field worked fine. I was actually using an older version of Watir when
I first found this so I'm not sure how far back I'd have to go.
On Thursday, March 20, 2014 7:59:10 AM UTC-7, Oscar.Rieken wrote:
>
> send before I could finish tried the same thing in chrome and it does not
> work. It looks like the latest version of
>
> chromedriver 2.9 came out feb 1
> selenium-webdriver 2.40 came out feb 18
> watir-webdriver 0.6.8 came out feb 20
>
> I would try with an older version of watir-webdriver and
> selenium-webdriver, and see if works then ill check it out later if no one
> has
>
>
> On Thu, Mar 20, 2014 at 10:51 AM, Oscar Rieken <[email protected]<javascript:>
> > wrote:
>
>> I tried this out here and it worked fine
>> http://derp-bear.herokuapp.com/forms/basic_form_example
>>
>> > require 'watir-webdriver'
>> => true
>> > Watir::VERSION
>> => "0.6.8"
>> > b = Watir::Browser.new :firefox
>> => #<Watir::Browser:0x5b7f48c3ab2514ba url="about:blank" title="">
>> > b.goto 'derp-bear.herokuapp.com'
>> => "http://derp-bear.herokuapp.com/"
>> > b.text_field(id: 'free_text_area')
>> => #<Watir::TextField:0x..f808e0044d909ac2 located=false
>> selector={:id=>"free_text_area", :tag_name=>"input or textarea",
>> :type=>"(any text type)"}>
>> > b.text_field(id: 'free_text_area').send_keys [:command, 'a']
>> => ""
>> > b.text_field(id: 'free_text_area').send_keys [:command, 'x']
>> => ""
>> > b.text_field(id: 'free_text_area').send_keys [:command, 'v']
>> => ""
>>
>>
>> On Wed, Mar 19, 2014 at 7:07 PM, Kyle <[email protected]
>> <javascript:>>wrote:
>>
>>> Using Watir-webdriver and Chrome 33 on OSX.
>>>
>>> The site I'm trying to automate has a button to copy text to the
>>> clipboard, and I have that automated and have confirmed that the text is
>>> being copied. However, when I go to the textarea I'm trying to paste into
>>> using send_keys [:command, 'v'] nothing seems to happen, but I get no
>>> errors and the test continues on after that line. Sending text with
>>> send_keys seems to work fine, but I've also tried using send_keys
>>> [:command, 'a'] and send_keys [:command, 'x'] which also seem to not work.
>>>
>>> --
>>> --
>>> Before posting, please read http://watir.com/support. In short: search
>>> before you ask, be nice.
>>>
>>> [email protected] <javascript:>
>>> http://groups.google.com/group/watir-general
>>> [email protected] <javascript:>
>>>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Watir General" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected] <javascript:>.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]
---
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.