| || |
web_image_click does not work for some time
I am using Web Test Add-in with WR7.5. I am using the following function to locate the centre of the image. The function and function call statements are as follows,
static function getCentrePoint( object )
auto returnValue ;
web_obj_get_info(object , "height", height);
web_obj_get_info(object , "width", width);
returnValue = (width/2) &" , "& (height/2) ;
split(getCentrePoint("Save (Alt+1)") ,coord );
web_image_click("Save (Alt+1)", coord, coord);
For some image it is clicking the image correctly, but for some it is not working. But for the image for which is not doing correctly,if I click manually, the x, y are almost similar to the one which is got from the function. Even then using the above function does not work.
Any clue regarding this issue?
Re: web_image_click does not work for some time
Ever tried a double Click...?
It worked for me,