amithsid
12 years agoContributor
Scroll- Error on Test Complete on execution of the following script for scrolling
I am trying to perform a scroll action by using the wPosition method. I am taking percentage as the input. Here is the script-
//Generic function
function scrlPosPer(obj,value)
{
top=aqObject.GetPropertyValue(obj,"wMax");
bot=aqObject.GetPropertyValue(obj,"wMin");
res=top-bot;
out=res*(value/100);
out1=Math.round(out);
return obj.wPosition=out1;
}
//Function Call
function asd()
{
obj=Sys.Process("ClientActivity").VBObject("frmCAMainMenu").Window("MDIClient", "", 1).VBObject("frmReferralLevel").VBObject("fraPosition").VBObject("fraDetail").VBObject("fraDetailsTabDetails").VBObject("vScrollDetailsTab");
Scroll.scrlPosPer(obj,"90");
}
I have attached the error log, it saya it clicked the next possible position.
Why is it not able to click the value I pass?
//Generic function
function scrlPosPer(obj,value)
{
top=aqObject.GetPropertyValue(obj,"wMax");
bot=aqObject.GetPropertyValue(obj,"wMin");
res=top-bot;
out=res*(value/100);
out1=Math.round(out);
return obj.wPosition=out1;
}
//Function Call
function asd()
{
obj=Sys.Process("ClientActivity").VBObject("frmCAMainMenu").Window("MDIClient", "", 1).VBObject("frmReferralLevel").VBObject("fraPosition").VBObject("fraDetail").VBObject("fraDetailsTabDetails").VBObject("vScrollDetailsTab");
Scroll.scrlPosPer(obj,"90");
}
I have attached the error log, it saya it clicked the next possible position.
Why is it not able to click the value I pass?