Page 1 of 2

Not focusing on control

Posted: Mon May 02, 2011 9:28 am
by sbaheti
Hi

I am using Ranorex 2.3.6.10664, and i am trying to play and record on one of my wpf application. I am able to record the one flow of application successfully but while playing back, it's not focusing any of control and script is getting fail. please help me resolve my issue.

Thanks
Sonali Baheti

Re: Not focusing on control

Posted: Mon May 02, 2011 1:56 pm
by Support Team
Hi,

Please would it be possible to provide us more information.
Which kind of exception you got?
Have the elements the same RxPath during execution or are there some dynamically items in there?

Regards,
Peter
Ranorex Team

Re: Not focusing on control

Posted: Tue May 03, 2011 4:51 am
by sbaheti
Hi
We are not getting any exception, just showing time out message to identify the objects and second RXPath is same during execution also. For example. I wanted to open one binary file, it's showing me as below in 2.3
Action as
Mouse , Down ,left,78:11,Textname

but when i run cursor is moving till the name but not performing any action. i also observe many of the click action , it's taking down as mouse action. but while running nothing performing. But when i record same thing using 2.2, it's taking directly click action and performing well. Please help me to solve this problem

Thanks
Sonali Baheti

Re: Not focusing on control

Posted: Tue May 03, 2011 8:44 am
by Support Team
Hi,

Could you please update to the latest Version of 2.3.x using the link on the Studio Start-Page. And try it again with the latest version.

Regards,
Peter
Ranorex Team

Re: Not focusing on control

Posted: Tue May 03, 2011 11:13 am
by sbaheti
Hi

I have installed ranorex 3.0 version in my another box, and faced same problem which i mentioned in earlier post. Let me know what i have to do.

Thanks
Sonali Baheti

Re: Not focusing on control

Posted: Wed May 04, 2011 12:09 pm
by Support Team
Hi,

can you please provide us more information about your issue:
  • A snaphsot file covering your whole application under test.
    Following link will show you how to generate such a snapshotfile:
    http://www.ranorex.com/support/user-gui ... files.html
  • The exact error message you get when the element is not found including the path which can not be found.
  • If possible a sample application covering the issue.
Regards,
Tobias
Support Team

Re: Not focusing on control

Posted: Fri May 06, 2011 7:45 am
by sbaheti
Hi

I am sorry, i can't share my application but yes i am explaining one example as below.

I am trying to select item from drop down, and as i told cursor is moving till the control but not performing any action. it showing message as

"Item 'FormMainWindow.ListItemDreams' was not found within the specified timeout of 10s.

Same for textbox also showing, i can say for every control it's showing similar message.

As i already told while recording for every 'Click" action it's taking "Down" as mouse action.

because of this reason my script is not working.

Let me know if you need more information.

Thanks
Sonali Baheti

Re: Not focusing on control

Posted: Fri May 06, 2011 10:09 am
by Support Team
Hi,

So if you're changing the "Down" action to a "Click" action it works as expected?
Or do you have some problems with you RanoreXPaths?
Can you please provide us a Recording file recorded with the standalone Recorder covering this issue and additional a snapshot file reflecting the current state of you application under test?
Can you also post the RanoreXPath which is shown within the timeout message?

Following link will show you how to generate a snapshot file:
http://www.ranorex.com/support/user-gui ... files.html

Kind regards,
Tobias
Support Team

Re: Not focusing on control

Posted: Fri May 06, 2011 10:37 am
by sbaheti
Hi

I am sorry i can't give snap shot or record file, as it's under secured area. My Rxpath is absolutely fine, it's recognizing control.

I have to manually add "Move to" action before every statement of 'Down" action and then "click" action , then it's work.

Please suggest me some solution.

Thanks
Sonali Baheti

Re: Not focusing on control

Posted: Fri May 06, 2011 11:25 am
by Support Team
Hi,

so the problem is that mouse.down actions are recorded without a mouse.up, which is curious.
Have you tried to restart your machine?
Please try to en/disable "Use asynchronous dispatching of mouse and keyboard events" in General tab of the the recording settings and inform us if it works with this setting or not.

Kind regards,
Tobias
Support Team

Re: Not focusing on control

Posted: Tue May 10, 2011 7:20 am
by sbaheti
Hello

As per your suggestion, i restarted my machine, but problem is still exist

second
1) if i enabled "Use asynchronous dispatching of mouse and keyboard events" option , now it's taking click action instead of down , but as i told if i check this option my mouse flickering problem get start and i am not able to record properly.
2) if i disabled "Use asynchronous dispatching of mouse and keyboard events" option i face the existing problem but my flickering problem get resolved.

Let me know now what have to do?

Thanks
Sonali Baheti

Re: Not focusing on control

Posted: Wed May 11, 2011 12:20 pm
by Support Team
Hi,

do you use Remote Desktop Connection or similar.
Cause normally there shoule not be any mouse flickering.

Regards,
Tobias
Support Team

Re: Not focusing on control

Posted: Fri May 13, 2011 5:52 am
by sbaheti
Hi

I am using VMachine/ Remote machine , which placed in client location. Could you please try to solve my problem. i am struck in middle of automation work.

Thanks
Sonali Baheti

Re: Not focusing on control

Posted: Fri May 13, 2011 11:06 am
by Support Team
Hi,

So you are using the window of the VMWare to navigate trough your machine? Please try to install a other Remote Viewer, for example VNC Viewer. We also use this viewer instead of the remote desktop, because this viewer doesn't affect Ranorex.

Regards,
Peter
Ranorex Team

Re: Not focusing on control

Posted: Wed May 25, 2011 7:22 am
by sbaheti
HeIlo

Is there any other way we an solve this problem, we are remotely accessing the client machine, it's very difficult adapt and apply your solution.

Thanks
Sonali Baheti