If the player is in iframe, what Super Kevy wrote is correct. This worked 
for me:

frame = @browser.iframe(:id, 'quote-frame')
frame.text_field(:id, 'travelerAge_1').fire_event("onfocus")
frame.text_field(:id, 'travelerAge_1').send_keys traveller_1

or if you want to use any elements in the iframe immediately, can simply be:
 @browser.iframe(:id, 'quote-frame').text_field(:id, 
'travelerAge_1').send_keys traveller_1





On Tuesday, February 24, 2015 at 5:10:42 AM UTC+8, Super Kevy wrote:
>
> What is your version of ruby and watir-webdriver.  Access to frames is now 
> separated by frame type (ie. frame & iframe)
>
> to access an iframe  typically need to include it the watir syntax  
> browser.iframe(:id,'player').exists?
> browser.iframe(:id,'player').visible?
> browser.iframe(:id,'player').present?
> browser.iframe(:id,'player').click
>
>
>
> On Monday, February 23, 2015 at 10:13:04 AM UTC-6, [email protected] 
> wrote:
>>
>> <iframe id="player" frameborder="0" allowfullscreen="1" title="YouTube 
>> video player" width="701" height="390" src="
>> https://www.youtube.com/embed/9KBlXb3j2Q8?autoplay=0&autohide=1&rel=0&enablejsapi=1&origin=https%3A%2F%2Fwww.dementiafriends.org.uk
>> "/>
>>
>

-- 
-- 
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.

Reply via email to