[Seaside] WebTester Locator Argument Accessor

Andrei Vasile Chis chisvasileandrei at gmail.com
Fri Mar 4 10:03:41 UTC 2011

Hi Joel,

A very simple way (and perhaps not the best way) in which you could obtain
 just a delay is to simply execute a time - comparison loop. You don't have
to execute it inside a waitForCondition block. For example you could extend
WebTester with the following methods and then in your test just call "self
webTester pause: 10000" and then verify your condition using the WtWebTester

WtWebTester>>getEval: aScript
self subclassResponsibility

WtWebTester>>pause: waitTimeInMillis
       self subclassResponsibility

WtSeleniumWebTester >>getEval: aScript
 ^ self processCommand: 'getEval' withParams: (Array with: aScript).

WtSeleniumWebTester >>pause: waitTimeInMillis
 self getEval: 'var date = new Date(); var curDate = null;  while (curDate =
new Date() - date < ', waitTimeInMillis asString, '){} '.

My 2cents

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20110304/32356ca4/attachment.htm

More information about the seaside mailing list