jQuery slider automation

372 views
Skip to first unread message

silwal

unread,
Apr 9, 2012, 5:52:24 AM4/9/12
to seleniu...@googlegroups.com
Hi all

I am automating an ajax lighbox which has a jQuery Slider ( http://jqueryui.com/demos/slider/ ) . If I inspect element slider is an anchor tag.

As I slide the slider manually, it changes value being displayed, beside it. I came up with a jQuery that will change the position of the slider, but the problem is it does not change the value being displayed, When I submit it the form validation fails.

Thanks in advance.

silwal

unread,
Apr 10, 2012, 4:45:02 AM4/10/12
to seleniu...@googlegroups.com
Me Again :)

This is how my slider looks http://screencast.com/t/emgbBiwECfDB

I came up with jQuery which looks like:

1. 

$("a").attr("style","left: 95.7143%;")

If you try this out with Firebug it will change the position of the slider, but wont change the value associated with the slider position in the right hand side. As shown in the above screenshot. ( Yes it does change the attribute of all the anchor tags )

I want the value to change, with respect to the slider position. Any pointers please? I am finding it difficult to execute JavaScript function from Firebug using jQuery. 

Your answer would be much appreciated. 

Gulshan Saini

unread,
Apr 10, 2012, 5:22:51 AM4/10/12
to seleniu...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages