Somehow my last post didn't have the code. Trying again:

require 'watir-webdriver'

CONTAINER_DIV_ID = "container"

browser = Watir::Browser.new :chrome
browser.goto 'http://dl.dropbox.com/u/141586668/scrub.html'
inner_wrapper = browser.div(:id, CONTAINER_DIV_ID).div(:class, 
"innerWrapper")
controls = inner_wrapper.div(:class, "oo_controls_wrap").div(:class, 
"oo_controls")
vod = controls.div(:class, "oo_controls_inner vod")
video_tag = inner_wrapper.video(:class, "video")
start_button = inner_wrapper.div(:class, "oo_promo").div(:class, 
"oo_start_button")
scrubber = vod.div(:class, "oo_scrubber")
scrubber_track = scrubber.div(:class, "oo_scrubber_track")
playhead = scrubber_track.div(:class, "oo_playhead")

puts "click start button"
start_button.click

5.times do
playhead.drag_and_drop_by 50, 0
end

browser.close


On Monday, March 11, 2013 3:12:59 AM UTC-7, Željko Filipin wrote:
>
> On Mon, Mar 11, 2013 at 12:02 AM, <[email protected] <javascript:>>wrote:
>
>> However when I use the API drag_and_drop_by the playhead is only moved at 
>> most 1 second at a time no matter what value of the right_by I use.
>
>
> Please share your code and link to a page where the problem can be 
> reproduced.
>
> Željko
> --
> https://leanpub.com/watirbook 
>

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


Reply via email to