'Waiting for not existing' help needed

Ask general questions here.
andrea.gualdoni
Posts: 5
Joined: Wed Nov 27, 2013 5:28 pm

'Waiting for not existing' help needed

Post by andrea.gualdoni » Wed Nov 27, 2013 6:13 pm

Hi,

had just the introduction test course in london in the last 2 days and starting today to practice at work.

I found a problem I'd like suggestion for.

I need automation on testing IE sites.

I tried to syncronize a little bit and using 'Waiting for not existing' action I feared i had not well understood so I started with a very simple test that i failed

I simply invoke IE and go to google site --> OK

Now I add action "Waiting for not existing" amd put in object repository a static button of google (search button)

/dom[@domain='google']//button[#'gbqfba']

I put timeout 30 sec.

and finally i put action that simply write something on search form.

I was waiting to IE to open and go to google and wait up to 30 sec to "search" button to disappear (thing that will never happen). After 30 sec of timeout the system would have continued with next step so typing in search form.

This doesn't happen and after entering google the system write in the serch form. What I did wrong?

Another thing. Is there the possibility to work on object properties? I have a div (.//div[#'loading']) and I want tests go on when this is in "visibility = false" state. Via Spy I see all properties but cannot find a way to work on them.

thx a lot in advance for help.

Andrea

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: 'Waiting for not existing' help needed

Post by Support Team » Thu Nov 28, 2013 1:25 pm

Hello Andrea,

The WaitForNotExists(waitTimeout) action waits until the element for the associated repository item ceases to exist. In your case, the button was not used in any action before this method -> did not exist for Ranorex.

Please try to add an action (e.g. Validate.Exists or Mouse.Move) before your 'WaitForNotExists'.
This would ensure that the button exist.
Please take a look at the following post that describes this behavior: http://www.ranorex.com/forum/wait-for-n ... t3620.html

Regards,
Markus (T)

andrea.gualdoni
Posts: 5
Joined: Wed Nov 27, 2013 5:28 pm

Re: 'Waiting for not existing' help needed

Post by andrea.gualdoni » Thu Nov 28, 2013 4:44 pm

thx a lot! Now I was totally wrong understanding this method. Tomorrow i will try it at work.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: 'Waiting for not existing' help needed

Post by Support Team » Mon Dec 02, 2013 5:07 pm

Hello Andrea,

You are welcome :-)

Regards,
Markus (T)