Not able to click on the object outside the visible area

Ask general questions here.
NishantSingh
Posts: 39
Joined: Thu Oct 09, 2014 1:15 pm
Location: Bangalore

Not able to click on the object outside the visible area

Post by NishantSingh » Thu Oct 09, 2014 1:35 pm

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
Regrads,
Nishant Singh

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Not able to click on the object outside the visible area

Post by Support Team » Fri Oct 10, 2014 9:55 am

Hello NishantSingh,

Please check if the property “EnsureVisible” is set to "True" for that specific element:
EnsureVisible_true.png
EnsureVisible_true.png (7.47 KiB) Viewed 2129 times
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();
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
.
Image

NishantSingh
Posts: 39
Joined: Thu Oct 09, 2014 1:15 pm
Location: Bangalore

Re: Not able to click on the object outside the visible area

Post by NishantSingh » Fri Oct 10, 2014 10:46 am

Hi Robert,

Still not working getting the same error message..

Regards,
Nishant Singh
Regrads,
Nishant Singh

NishantSingh
Posts: 39
Joined: Thu Oct 09, 2014 1:15 pm
Location: Bangalore

Re: Not able to click on the object outside the visible area

Post by NishantSingh » Tue Oct 14, 2014 2:08 pm

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Not able to click on the object outside the visible area

Post by Support Team » Wed Oct 15, 2014 1:35 pm

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
.
Image

aravin
Posts: 47
Joined: Mon Mar 09, 2015 7:43 am

Re: Not able to click on the object outside the visible area

Post by aravin » Wed Jun 10, 2015 10:41 am

I also face this issue.

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."
But I verified that element by using repo.Exists();. Ranorex can find the element but unable to click.

Kindly give a solution.

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Not able to click on the object outside the visible area

Post by krstcs » Wed Jun 10, 2015 1:48 pm

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...

aravin
Posts: 47
Joined: Mon Mar 09, 2015 7:43 am

Re: Not able to click on the object outside the visible area

Post by aravin » Wed Jun 17, 2015 7:11 am

Hi Krstcs,

Sure.. Got your idea. Thanks!!!

satishmohan
Posts: 56
Joined: Wed Jun 10, 2015 4:35 pm

Re: Not able to click on the object outside the visible area

Post by satishmohan » Wed Jun 17, 2015 2:47 pm

Team,
Please make use of invoke(). works for me.

aravin
Posts: 47
Joined: Mon Mar 09, 2015 7:43 am

Re: Not able to click on the object outside the visible area

Post by aravin » Thu Jun 18, 2015 6:21 am

satishmohan wrote:Team,
Please make use of invoke(). works for me.
Hi Satish,

Where to use invoke(). Can you please explain?

satishmohan
Posts: 56
Joined: Wed Jun 10, 2015 4:35 pm

Re: Not able to click on the object outside the visible area

Post by satishmohan » Thu Jun 18, 2015 5:25 pm

This is available on the command at the recorder. Add new action to select invoke(). Page 40 of Tutorial pdf.

aravin
Posts: 47
Joined: Mon Mar 09, 2015 7:43 am

Re: Not able to click on the object outside the visible area

Post by aravin » Fri Jun 19, 2015 6:57 am

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.

satishmohan
Posts: 56
Joined: Wed Jun 10, 2015 4:35 pm

Re: Not able to click on the object outside the visible area

Post by satishmohan » Fri Jun 19, 2015 12:14 pm

Did it resolve your issue.

aravin
Posts: 47
Joined: Mon Mar 09, 2015 7:43 am

Re: Not able to click on the object outside the visible area

Post by aravin » Fri Jun 19, 2015 12:39 pm

satishmohan wrote:Did it resolve your issue.
My issue still exists. My project is not switching between application. This issue occurs randomly.

Sometimes it works fine but sometimes it stucked in searching for element.

Anyway, thanks for your answer.