I am trying to automate the following scenario with selenium RC:
there must be pause ( pause (1) ) or waitForElementPresent between 2 clicks here is working sample for phpUnit. Strange, but clickAndWait does'n work
$this->open("/");
$this->type("q", "software");
$this->click("btnG");
for ($second = 0; ; $second++) {
if ($second >= 60) $this->fail("timeout");
try {
if ($this->isElementPresent("//a[@class='l']")) break;
} catch (Exception $e) {}
sleep(1);
}
$this->click("//a[@class='l']");