Using the code similar to the following I cannot scrub the playhead. It's only 
moved by 1 second at most no matter what right_by values I use (both positive 
and negative.)
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

---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watir-webdriver/issues/187
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to