Forum Discussion

amithsid's avatar
amithsid
Contributor
12 years ago

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?



2 Replies

  • Hello,



    This Issue has not yet been resolved, can anyone suggest a solution?



    Thanks,

    AMITH N G

  • Hi Amith,


     


    This behavior may be related to the control you are using. Could you please check this with your developers?