Object synchronization

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
jainaakash
Posts: 48
Joined: Thu Jun 10, 2010 12:06 pm

Object synchronization

Post by jainaakash » Wed Jun 30, 2010 6:42 am

Hi Team,

Does Ranorex supports Object Synchronization? How do we implement this with Ranorex?

Thanks and Regards,
Aakash

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

Re: Object synchronization

Post by Support Team » Wed Jun 30, 2010 9:50 am

What do you mean by "Object Synchronization"?

If you mean thread synchronization, the .NET System.Threading namespace has all the functionality you need. Please, see the following web pages for more info:
http://msdn.microsoft.com/en-US/library/ms228964.aspx
http://msdn.microsoft.com/en-US/library ... ading.aspx
http://msdn.microsoft.com/en-US/library/3e8s7xdd.aspx

Regards,
Alex
Ranorex Team
.
Image

jainaakash
Posts: 48
Joined: Thu Jun 10, 2010 12:06 pm

Re: Object synchronization

Post by jainaakash » Wed Jun 30, 2010 10:13 am

Hi Alex,

Thanks for your response.
By Object syncronization, I mean that the tool waits till the object is fully loaded. For example, when you click on a link, you instert sync so that the tool waits till the entire page is loaded and then moves to the next step. Another example would be for a button to become enabled or disabled.
Explicit wait or Delay would be for a specified amount of time, but a sync waits only till the page or object is fully loaded.
Hope, I am not confusing.

Thanks and Regards,
Aakash

dal
Posts: 72
Joined: Thu Jun 24, 2010 8:59 am

Re: Object synchronization

Post by dal » Wed Jun 30, 2010 2:09 pm

Hi,

Can you try the following code ....

Dim repo As TestRepository = TestRepository.Instance
Dim webDocument As WebDocument = repo.FormLogin.Self
webDocument.WaitForDocumentLoaded()

--Dal

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

Re: Object synchronization

Post by Support Team » Wed Jun 30, 2010 2:45 pm

Hi,

You can use the RxPath to check if the element has the expected state.
For example to check if a button is enabled or disabled you can use the following path
"enabled"
button[@controlname='button1' and @Enabled='True']
"disabled"
button[@controlname='button1' and @Enabled='False']
If the object could not be find with your RxPath, Ranorex throws an exception. If Ranorex throws an exception you know that the item is not available with your RxPath attributes. You can also change the timeout of the find method to increase the search time for an element, if you know that an item take longer time for your expected state.

Please also read following documentation
http://www.ranorex.com/support/user-gui ... apter.html
and take a look to our screencasts about RxPath
http://www.ranorex.com/support/screencasts.html

Regards,
Peter
Ranorex Support Team
.
Image