Page 1 of 1

'Waiting for not existing' help needed

Posted: Wed Nov 27, 2013 6:13 pm
by andrea.gualdoni
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

Re: 'Waiting for not existing' help needed

Posted: Thu Nov 28, 2013 1:25 pm
by Support Team
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)

Re: 'Waiting for not existing' help needed

Posted: Thu Nov 28, 2013 4:44 pm
by andrea.gualdoni
thx a lot! Now I was totally wrong understanding this method. Tomorrow i will try it at work.

Re: 'Waiting for not existing' help needed

Posted: Mon Dec 02, 2013 5:07 pm
by Support Team
Hello Andrea,

You are welcome :-)

Regards,
Markus (T)