Not able to click on the object outside the visible area
-
- Posts: 39
- Joined: Thu Oct 09, 2014 1:15 pm
- Location: Bangalore
Not able to click on the object outside the visible area
I am working on a windows application created using .Net framework. this application has aside navigation bar which consist of many section and each section consist some links. and Use can collapse or expand the section when all sections are expanded. Few of the Section go out of the visible area and when I am trying to click on the Section header or subsection which are not visible on the visible are gettign this error message
Failed to move to location 'Center' within element '{TabPage:Utility}'.
The pointer cannot be moved to point '{X=91,Y=1110}' since it is outside of the visible desktop
Please give any useful advise to resolve this issue
Failed to move to location 'Center' within element '{TabPage:Utility}'.
The pointer cannot be moved to point '{X=91,Y=1110}' since it is outside of the visible desktop
Please give any useful advise to resolve this issue
Regrads,
Nishant Singh
Nishant Singh
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Not able to click on the object outside the visible area
Hello NishantSingh,
Please check if the property “EnsureVisible” is set to "True" for that specific element:
Additionally, you can also use the “Focus()”-action within the UserCode in order to bring the element to the visible region of your screen:
Please note: If the "EnsureVisible" is set to "True", but the element is still not reachable, disable "EnsureVisible" (EnsureVisible = false) and use the Focus()-action instead.
Regards,
Robert
Please check if the property “EnsureVisible” is set to "True" for that specific element:
Additionally, you can also use the “Focus()”-action within the UserCode in order to bring the element to the visible region of your screen:
Code: Select all
repoElement.Focus();
Regards,
Robert
You do not have the required permissions to view the files attached to this post.
-
- Posts: 39
- Joined: Thu Oct 09, 2014 1:15 pm
- Location: Bangalore
Re: Not able to click on the object outside the visible area
Hi Robert,
Still not working getting the same error message..
Regards,
Nishant Singh
Still not working getting the same error message..
Regards,
Nishant Singh
Regrads,
Nishant Singh
Nishant Singh
-
- Posts: 39
- Joined: Thu Oct 09, 2014 1:15 pm
- Location: Bangalore
Re: Not able to click on the object outside the visible area
Can Anyone Help me on this not able to click on any element which is not in visible area of the desktop. getting error message as mention above. Please helo me out.
Regrads,
Nishant Singh
Nishant Singh
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Not able to click on the object outside the visible area
Hello NishantSingh,
Unfortunately, we cannot reproduce the mentioned behavior.
May I ask if you can provide a demo version of your application under test to us? If yes, please contact [email protected]
Thanks,
Robert
Unfortunately, we cannot reproduce the mentioned behavior.
May I ask if you can provide a demo version of your application under test to us? If yes, please contact [email protected]
Thanks,
Robert
Re: Not able to click on the object outside the visible area
I also face this issue.
When I try to click the element, I am getting error
But I verified that element by using repo.Exists();. Ranorex can find the element but unable to click.
Kindly give a solution.
When I try to click the element, I am getting error
Code: Select all
"Failed to move to location 'Center' within element '{Container:cont_38010}'.
The pointer cannot be moved to point '{X=1012,Y=9015}' since it is outside of the visible desktop."
Kindly give a solution.
Re: Not able to click on the object outside the visible area
Make sure that the element is actually within the screen area. Just because it exists doesn't mean that Ranorex can click on it. The mouse can only click on things that are within the bounds of the VISIBLE desktop.
Shortcuts usually aren't...
Re: Not able to click on the object outside the visible area
Hi Krstcs,
Sure.. Got your idea. Thanks!!!
Sure.. Got your idea. Thanks!!!
-
- Posts: 56
- Joined: Wed Jun 10, 2015 4:35 pm
Re: Not able to click on the object outside the visible area
Team,
Please make use of invoke(). works for me.
Please make use of invoke(). works for me.
Re: Not able to click on the object outside the visible area
Hi Satish,satishmohan wrote:Team,
Please make use of invoke(). works for me.
Where to use invoke(). Can you please explain?
-
- Posts: 56
- Joined: Wed Jun 10, 2015 4:35 pm
Re: Not able to click on the object outside the visible area
This is available on the command at the recorder. Add new action to select invoke(). Page 40 of Tutorial pdf.
Re: Not able to click on the object outside the visible area
satishmohan wrote:This is available on the command at the recorder. Add new action to select invoke(). Page 40 of Tutorial pdf.
Hi Thanks satish.
-
- Posts: 56
- Joined: Wed Jun 10, 2015 4:35 pm
Re: Not able to click on the object outside the visible area
Did it resolve your issue.
Re: Not able to click on the object outside the visible area
My issue still exists. My project is not switching between application. This issue occurs randomly.satishmohan wrote:Did it resolve your issue.
Sometimes it works fine but sometimes it stucked in searching for element.
Anyway, thanks for your answer.