<br>I failed, but I think somebody with javascript skills might be able to create a pause within a waitForCondition js block.<br><br>I tried executing, within it, a do-while loop that did some time comparisons. That gave me strange results when the times increased. <br>
<br>I also tried to execute a javascript setTimout() within it. But it didn't seem to honor that at all.<br><br>It's ok...I can use waitForElement. It's just strange in the cases where, in order to test that an element appeared, I first have to wait for it to appear ;)<br>
<br>I'll keep thinking about it. <br><br>Thanks<br>Joel<br><br><br><div class="gmail_quote">On Thu, Mar 3, 2011 at 2:17 AM, Bart Gauquie <span dir="ltr"><<a href="mailto:bart.gauquie@gmail.com">bart.gauquie@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Have not tried it, but does this:<div><a href="http://agiletesting.blogspot.com/2006/03/ajax-testing-with-selenium-using_21.html" target="_blank">http://agiletesting.blogspot.com/2006/03/ajax-testing-with-selenium-using_21.html</a></div>
<div>
serve your needs?</div><div><br></div><div>Grtz</div><div><br></div><font color="#888888"><div>Bart</div></font><div><div></div><div class="h5"><div><br></div><div><br><br><div class="gmail_quote">On Thu, Mar 3, 2011 at 3:46 AM, Joel Turnbull <span dir="ltr"><<a href="mailto:joelbywan@gmail.com" target="_blank">joelbywan@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>Hey, have you found a good way introduce a small pause into a WebTester test?<br><br>Something similar to waitForPageToLoad, but for jquery actions that change the page without reloading it. Something other that waitForElementPresent.<br>
<br>I tried sending the selenium 'pause' command, but selenium server 2.0b2 didn't seem to recognize it...<br><br>'Could not execute command pause with params: #(''20000'') result was: ERROR: Unknown command: ''pause'''<div>
<div></div><div><br>
<br><br><br><br><br><br><br><div class="gmail_quote">On Wed, Mar 2, 2011 at 12:59 PM, Bart Gauquie <span dir="ltr"><<a href="mailto:bart.gauquie@gmail.com" target="_blank">bart.gauquie@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Go ahead :-)<div><br></div><div>Grzt</div><div><br></div><div>Bart<br><br><div class="gmail_quote"><div><div></div><div>On Mon, Feb 28, 2011 at 4:06 AM, Joel Turnbull <span dir="ltr"><<a href="mailto:joelbywan@gmail.com" target="_blank">joelbywan@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div><br>I was wondering what the contributors to WebTester think about adding an accessor for argument to WtSeleniumLocator?<br>
<br>The reason I ask is I'd like to, in setUp, do something like this...<br><br> input := self textFieldByXPath: '//span[ @class = "TextInPlaceEditor" ]/input'.<br>
<br>and then in my test do this...<br><br> ( self link: 'an in-place editor' ) click.<br> self waitForElementPresent: input locator argument. <br> input text: 'some input'<br><font color="#888888"><br>
Joel<br>
</font><br></div></div>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>imagination is more important than knowledge - Albert Einstein<br>Logic will get you from A to B. Imagination will take you everywhere - Albert Einstein<br>Learn from yesterday, live for today, hope for tomorrow. The important thing is not to stop questioning. - Albert Einstein<br>
The true sign of intelligence is not knowledge but imagination. - Albert Einstein<br>However beautiful the strategy, you should occasionally look at the results. - Sir Winston Churchill<br>It's not enough that we do our best; sometimes we have to do what's required. - Sir Winston Churchill<br>
</div>
<br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>imagination is more important than knowledge - Albert Einstein<br>Logic will get you from A to B. Imagination will take you everywhere - Albert Einstein<br>Learn from yesterday, live for today, hope for tomorrow. The important thing is not to stop questioning. - Albert Einstein<br>
The true sign of intelligence is not knowledge but imagination. - Albert Einstein<br>However beautiful the strategy, you should occasionally look at the results. - Sir Winston Churchill<br>It's not enough that we do our best; sometimes we have to do what's required. - Sir Winston Churchill<br>
</div>
</div></div><br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></blockquote></div><br>