<div>Kewl!. I gave you access to the repository. Can you share your code ? Thanks!<br></div><div><br></div><div>Bart</div><br><div class="gmail_quote">On Sat, Aug 28, 2010 at 6:02 AM, Joel Turnbull <span dir="ltr">&lt;<a href="mailto:joelbywan@gmail.com">joelbywan@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Bart, <br><br>It wasn&#39;t too long before I needed a span, so I had an idea and gave it a try. <br>
<br>
I copied your new Div classes into generic Element classes. An element 
could be anything you are looking for with &#39;isElementPresent&#39;. The test 
looks like:<br>
<br>
<br>
testIsPresent<br>
    self should: (self elementById: &#39;divId&#39;) isPresent.<br>
    self should: (self elementById: &#39;spanId&#39;) isPresent.<br>
    self shouldnt: (self elementById: &#39;someOtherId&#39;) isPresent.<br>
    <br>
    self should: (self elementByXPath: &#39;//div[@class=&#39;&#39;foo&#39;&#39;]&#39;) isPresent.<br>
    self should: (self elementByXPath: &#39;//span[@class=&#39;&#39;foo&#39;&#39;]&#39;) isPresent.<br>
    self shouldnt: (self elementByXPath: &#39;//span[@class=&#39;&#39;someOtherFooClass&#39;&#39;]&#39;) isPresent.<br>
<br>
<br>
Initially, it seems to be doing the trick.<br>
<br>Thanks,<br><font color="#888888">
<br>
Joel</font><div><div class="h5"><br>
<br>
<br><br><br><div class="gmail_quote">On Fri, Aug 27, 2010 at 11:19 PM, Joel Turnbull <span dir="ltr">&lt;<a href="mailto:joelbywan@gmail.com" target="_blank">joelbywan@gmail.com</a>&gt;</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">


<div>On Fri, Aug 27, 2010 at 6:55 AM, Bart Gauquie <span dir="ltr">&lt;<a href="mailto:bart.gauquie@gmail.com" target="_blank">bart.gauquie@gmail.com</a>&gt;</span> wrote:<br></div><div class="gmail_quote"><div>

<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<div>I found the time and uploaded a new version. Please give it a run.<br></div></blockquote></div><div><br>Ok, I understand now. I gave it a run and it&#39;s great, thanks!<br><br></div><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><br></div><div>I&#39;ve also noticed that WebTester contains an awfull lot of duplicated code. Time to try out the reflective powers Smalltalk has I&#39;ve learned in the meanwhile to fix this. :-)</div>
<div><br></div><div>Kind Regards,</div><div><br><font color="#888888">Bart<br></font></div><div><div><br><div class="gmail_quote">On Fri, Aug 27, 2010 at 10:50 AM, Bart Gauquie <span dir="ltr">&lt;<a href="mailto:bart.gauquie@gmail.com" target="_blank">bart.gauquie@gmail.com</a>&gt;</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">Joel,<div><br></div><div>WebTester is still in development. New features are added if needed.</div>



<div><br></div><div>
I agree that the code you&#39;ve written is yikes ...</div><div><br></div><div>What you&#39;ve should be able to write is something like:</div>
<div><br></div><div>     self assert: (self divByXPath: &#39;@class=&quot;foo&quot;&#39;) isPresent</div><div><br></div><div>which will encapsulate the code you&#39;ve provided. (analoguous to the other encapsulations).</div>





<div><br></div><div>If I find the time, I will add it ... or I welcome your try to add it ...</div><div><br></div><div>Kind Regards,<br><br>Bart</div><div><br></div><div><br></div><div><div><div><div class="gmail_quote">




On Fri, Aug 27, 2010 at 6:33 AM, Joel Turnbull <span dir="ltr">&lt;<a href="mailto:joelbywan@gmail.com" target="_blank">joelbywan@gmail.com</a>&gt;</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>I&#39;m not sure if I&#39;m doing this right. <br><br>How do I, with WebTester, test that &lt;div class=&quot;foo&quot;&gt; is present? This is boggling me, and testing something like that seemed pretty obvious with SeasideTesting. I ended up doing this, but yikes...<br>







<br>    self assert: ( self webTester processCommand: &#39;isElementPresent&#39; withParams: ( Array with: &#39;//div[@class=&#39;&#39;foo&#39;&#39;]&#39; )) = &#39;true&#39;<br><br>Am I trying to do something that WebTester is not suited for?<div>





<div><br>

<br><br><br><br><br><div class="gmail_quote">On Wed, Aug 25, 2010 at 8:56 AM, Joel Turnbull <span dir="ltr">&lt;<a href="mailto:joelbywan@gmail.com" target="_blank">joelbywan@gmail.com</a>&gt;</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">







Very helpful, thank you. It occurred to me last night as I was playing some more with WebTester that it isn&#39;t necessarily a mutually exclusive decision. Like Johan stated, each  can be utilized for different kinds of testing.<div>







<div><br>
<br><br><div class="gmail_quote">On Wed, Aug 25, 2010 at 7:16 AM, C. David Shaffer <span dir="ltr">&lt;<a href="mailto:cdshaffer@acm.org" target="_blank">cdshaffer@acm.org</a>&gt;</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">








<div> On 08/25/10 06:49, Bart Gauquie wrote:<br>
&gt; WebTester opens a browser by sending a http request to Selenium Remote<br>
&gt; Control (<a href="http://seleniumhq.org/projects/remote-control/" target="_blank">http://seleniumhq.org/projects/remote-control/</a>). And then<br>
&gt; this remote control starts the browser. Selenium Remote Control is a<br>
&gt; java process you have to start before starting the selenium tests in<br>
&gt; Smalltalk.<br>
&gt;<br>
<br>
</div>I see.  I&#39;m sure that makes sense for Selenium but for SeasideTesting<br>
the best option is raising a browser window from Smalltalk (you could<br>
ask the user to do it for you if you are really allergic to FFI).  This<br>
is especially true on build servers where ST is running inside a VNC<br>
session, for example.<br>
<div><div><br>
David<br>
<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>
</div></div></blockquote></div><br>
</div></div></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></div></div><div>-- <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&#39;s not enough that we do our best; sometimes we have to do what&#39;s required. - Sir Winston Churchill<br>






</div></div>
</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&#39;s not enough that we do our best; sometimes we have to do what&#39;s required. - Sir Winston Churchill<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></div></div><br>
</blockquote></div><br>
</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><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&#39;s not enough that we do our best; sometimes we have to do what&#39;s required. - Sir Winston Churchill<br>