Forum Discussion

candy_tellez's avatar
candy_tellez
Occasional Contributor
12 years ago

Getting error when clicking on an object

Hi all!



I have to click on a link "Sing out" that is in a menu that only keeps showing on hover, if the mouse is away the menu disappears. 

To prevent the menu to disappears i set a hover mouse instruction on the link "Sing out" and after the hover instruction i set a click instruction on the "Sing out" link.



When i run the test it is showing the following error on the click instruction:



"There was an attempt to perform an action at point (0, 0) which is invisible or out of the window bounds."



I follow the playback and the mouse keeps hovering the "Sign out" link in a correct position, so i don´t understand why it cannot click on it. And the coordinates for the click instructions are as default (-1,-1).





  • How close together are your two commands?



    If you set the hover then immediately try and click a link in the popup menu it may simply be that it hasn't had time to render before you try and click so is still seen as invisible.



    Try inserting a couple of seconds delay between the hover and the click and see if that helps ...



    (This would also explain why it works when you step through as you are introducing a delay)
  • candy_tellez's avatar
    candy_tellez
    Occasional Contributor
    Hi.



    Thanks you answer. Well i set the delay you suggested but it still does not click on the link. While i was watching the playback i could see two messages it shows after the delay instruction (5000 ms):



       1. Waiting for the window is activaded.



    Next message...



       2. waiting until the overlapped window becames visible.





    This click instruction works properly in Chrome but not in Firefox :(.  Thanks again for your help.





  • Hello Candy,



    Please make sure using object spy or object browser that the object you want to click has no children. If it has, maybe this is the reason why it can't be clicked, even if the object is not visible.



    If that's the case, just clic on the children. If it's not, you can try clicking on its parent at the desired coordinates... A bit ugly, but could do the trick.



    Hope it helped
  • candy_tellez's avatar
    candy_tellez
    Occasional Contributor
    Hi.



    Thanks for the answer.  The object do not have children and i tried to click on the parent and it still does nor work. :( 



    Just in forefox does not work.