웹 사이트를 테스트 할 때 Selenium RC를 사용하고 있습니다. 그러나 그것은 항상 오류 다음 보여Selenium Time Out Error
com.thoughtworks.selenium.SeleniumException: Timed out after 30000ms
내 샘플 코드는 아래와 같습니다 :
이public static void main(String[] args) {
try {
startRC();
testCase_RC();
} catch (Exception e) {
System.out.println("Exception : " + e.getMessage());
}
public static void startRC() {
selenium = new DefaultSelenium("localhost", 4444, "*firefox", "https://www.example.com");
selenium.start();
}
public static void testCase_RC() throws Exception {
try {
selenium.open("/login");
selenium.waitForPageToLoad("200000");
} catch (Exception e) {
System.out.println("Message: " + e.getMessage());
e.printStackTrace();
}
}
가 열려() 함수에 오류를 표시합니다. 나는 인터넷에서 주어진 많은 해결책을 시도했지만 아무 해결책도 나를 위해 일하지 않는다. 제발, 내가 셀레늄 RC에 대한 새로운 오전 도와주세요.