I'm running selenium RC with Java in Eclipse. The issue I'm having is with the selenium.click command. The link I click on loads a new page. Sometimes that takes 5 seconds and sometimes it'll take 2-3 minutes. Each time I see the page load and immediately after my test fails and I get the message "Timed out waiting for action to finish."
I've tried to instead use selenium.isElementPresent to check for the page being loaded. However, when I run in debug mode I notice it never gets past the selenium.click to even get to the point of checking for the element. From what I understand there is a wait built into the selenium.click command. So my question is, does anyone know how to ignore that built in wait so I can instead use the selenium.isElementPresent instead?
selenium.click(Link);
for (int i = 0; i < 60 ; i++) {
if (selenium.isElementPresent(Home)) {
break;
}
Thread.sleep(1000);
}
I've also tried using a selenium.open to go directly to the URL and skip the link completely and then use the selenium.isElementPresent to verify the page has loaded. I get the same issue there where it never actually gets to the for loop before failing with the same error message.