Slider sldrRiskLevel = ilstMainTabPages[0].FindSingle<Slider>("./slider[@automationid='slider']");
double Max = sldrRiskLevel.MaxValue;
double Min = sldrRiskLevel.MinValue;
double Val = sldrRiskLevel.Value;
int intRandVal = new Random().Next((int)Min, (int)Max);
sldrRiskLevel.Value = intRandVal;
From Above code, I'm not getting any error. The value is set successfully. But the slider is not moving. Please help me on this problem. I've attached the snapshot of the slider control.