pkudrys
2 months agoContributor
Set web slider position without dragging slider
Hi guys,
Is there a way to set the web slider position, without the need to drag the slider (or using cursor/page up/down keys)? I found SetPosition action or wPosition property, but neither seem work with the web objects.
And yes, I also tried set "Keys" or "value", but these does not work either.
Thanks for any idea :)
PS:
I ended-up with below solution, using Keys action.
else if (inputElement.ObjectType == "Slider")
{
inputElement.Keys("[Home]");
for (let i = 0; i < (csvInputValue/10); i++)
{
inputElement.Keys("[Right]");
}
}
Basically, it Home key sets the slider to zero position and then Right key in loop sets the slider to expected position.