Without seeing more of the code, I'm pretty sure you need to start by moving away from using Global variables.<br><br><br><div><span class="gmail_quote">On 06/06/07, <b class="gmail_sendername">eisdrache</b> <<a href="mailto:forum-watir-users@openqa.org">
forum-watir-users@openqa.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Here is the basic idea of what I am trying to do...
<br><br>I have one site, lets call it <a href="http://www.example.com">www.example.com</a>. On that site, there is a login page which directs to four different regions, say <a href="http://region1.example.com">region1.example.com
</a>, <a href="http://region2.example.com">region2.example.com</a>, etc.</blockquote><div><br>[snip] <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>I have tried setting up something like this:<br><br>php page:<br><br>$regions = array('region1','region2','region3','region4');<br><br>foreach ($regions as $region) {<br> $cmd = "start
example.rbw $region";<br> exec($cmd);<br> sleep(3);<br>}<br><br>ruby page:<br><br>region = $ARGV[0]<br><br>$ie = Watir::IE.start("<a href="http://www.example.com">www.example.com</a>")<br><br>$ie.text_field(:name, "user").set(username)
<br>$ie.text_field(:name, "password").set(password)<br>$ie.select_list(:name, "region").select(region)<br><br>proceed with testing...<br><br>This, however, does not seem to work. Seems as if two or three instances will start but only one will actually finish. So, hopefully this makes sense and hopefully someone can help me figure this one out.
<br><br>Thanks in advance.<br></blockquote></div><br>