Auto Complete · Slider · Testing · watir · watir-webdriver

Automate JQuery Slider using Watir-WebDriver

Automate JQuery Slider using Watir-WebDriver:

Example Code:

require ‘rubygems’
require ‘watir-webdriver’ :ie
ie.goto(“”),’ui-slider-handle ui-state-default ui-corner-all’).focus


Demo Output Video  —


3 thoughts on “Automate JQuery Slider using Watir-WebDriver

  1. Nice trick. This should work as well:

    handle =,”ui-slider-handle ui-state-default ui-corner-all”)
    handle.send_keys(:arrow_down, :page_down, :arrow_up, :page_up)

    or even:

    handle.drag_and_drop_by(50, 0)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s