Not sure how the cucumber example is working but the assert boolean if
wokring would do this test perfectly.
I know how the assert is checking bor the text etc ang how the timer is
working but either the timer function is not working (most likely) or the
boolean if statement is not funcitoning. The second that the line
if jsToEval = 'Ext.query("div.x-tool")[0].click()' #check for x and click if
present
@@ie.document.parentWindow.eval(jsToEval)
executes the waitir test suite finishishes which indicates that it is not
waiting for 35 seconds to see if loading disappears?
2009/6/3 aidy lewis <[email protected]>
>
> 2009/6/3 Jerry Lane <[email protected]>:
> > Can I just use a simple if to do that thou? Something simple such as
> >
> > if boolean = true
> > puts 'Test Passed'
> > else
> > puts 'Test Failed'
> > end
>
> xUnit saves you from writing your own assertions (as above). Although
> I believe it to be of the wrong narrative for business facing tests.
>
> Look at:
>
>
> http://github.com/aslakhellesoy/cucumber/tree/9606fe835c84ed56ff5c41720a6fdbd6289feaa4/examples/watir/features
>
>
> Aidy
>
> >
>
--
Jerry
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---