Perfect! That's exactly what I was looking for. Thanks!
On Wednesday, December 4, 2013 12:14:46 AM UTC-5, Justin Ko wrote:
>
> You can use the generic element accessor, which is in the form
> element(:name, :tag_name, :identifier => 'value'). For example:
>
> element(:fckeditor, :frame, :id => 'editor')
>
> This would let you do:
>
> fckeditor_element.send_keys("This is my text")
>
> Note that you can also locate the element directly, without the accessor:
>
> page.element(:frame, :id => 'editor').send_keys("This is my text")
>
> - Justin
>
> On Monday, December 2, 2013 9:15:33 AM UTC-5, Dan wrote:
>>
>> This doesn't get me a handle to the frame itself. I'm looking for
>> something like.
>>
>> frame(:fckeditor,:id => 'editor')
>> fckeditor_element.send_keys("This is my text")
>>
>> On Friday, November 29, 2013 5:44:32 AM UTC-5, QOExcel wrote:
>>>
>>> in_frame(:class => 'share-client-content-iframe') do |frame|
>>> text_field(:invite, :id => ':p.fakeRecipient', :frame => frame)
>>> text_area(:hiddeninvite, :id => ':l', :frame => frame)
>>>
>>> среда, 27 ноября 2013 г., 20:07:58 UTC+4 пользователь Dan написал:
>>>>
>>>> I know this isn't a watir question per se, but I know a lot of members
>>>> of this group use page object. I'm trying to send keys directly to a
>>>> frame
>>>> using page-object, but the problem is I can't get a handle to just the
>>>> frame, just elements inside of it? This is one of those fckeditor kind of
>>>> things.
>>>>
>>>> # How do I interact with just the frame itself?
>>>>
>>>> in_frame(:id => 'blah') do |frame|
>>>> end
>>>>
>>>
--
--
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/groups/opt_out.