RC Browser closed in the middle of execution
Page 1 of 1 • Share •
RC Browser closed in the middle of execution
Hi All,
I have just started learning Selenium. I am trying to use Selenium RC for automating my application.
I am trying a test case to just login to my application.
When I run the test case, two browsers are opened. One is Selenium RC server and the other is the Base URL I have given in the test case. But after the selenium.open statement, the browser opened for the base url gets closed and the base url is opened in the selenium RC server browser. The test case does not execute further.
Please find below the code I am using
private Selenium selenium = new DefaultSelenium( "localhost",4444,"*firefox",BASE_URL);
selenium.selectWindow(null);
selenium.setTimeout("0");
selenium.open(BASE_URL);
selenium.waitForPageToLoad(MAX_WAIT_TIME_IN_MS);
selenium.setTimeout("0"); // Execution stops here
selenium.waitForPageToLoad(MAX_WAIT_TIME_IN_MS);
selenium.type("username", "seltest");
selenium.type("password", "seltest");
selenium.waitForPageToLoad(MAX_WAIT_TIME_IN_MS);
selenium.click("loginBtn");
selenium.waitForPageToLoad(MAX_WAIT_TIME_IN_MS);
selenium.close();
Please help me in solving this problem. I am not able to proceed further.
Thanks,
Selenium Tester
I have just started learning Selenium. I am trying to use Selenium RC for automating my application.
I am trying a test case to just login to my application.
When I run the test case, two browsers are opened. One is Selenium RC server and the other is the Base URL I have given in the test case. But after the selenium.open statement, the browser opened for the base url gets closed and the base url is opened in the selenium RC server browser. The test case does not execute further.
Please find below the code I am using
private Selenium selenium = new DefaultSelenium( "localhost",4444,"*firefox",BASE_URL);
selenium.selectWindow(null);
selenium.setTimeout("0");
selenium.open(BASE_URL);
selenium.waitForPageToLoad(MAX_WAIT_TIME_IN_MS);
selenium.setTimeout("0"); // Execution stops here
selenium.waitForPageToLoad(MAX_WAIT_TIME_IN_MS);
selenium.type("username", "seltest");
selenium.type("password", "seltest");
selenium.waitForPageToLoad(MAX_WAIT_TIME_IN_MS);
selenium.click("loginBtn");
selenium.waitForPageToLoad(MAX_WAIT_TIME_IN_MS);
selenium.close();
Please help me in solving this problem. I am not able to proceed further.
Thanks,
Selenium Tester
seltestng- Posts: 2
Join date: 2010-12-02
Re: RC Browser closed in the middle of execution
Hi... Try this
public void Login()
{
selenium.open(BASE_URL);
selenium.type("username", "seltest");
selenium.type("password", "seltest");
selenium.click("loginBtn");
selenium.waitForPageToLoad(MAX_WAIT_TIME_IN_MS);
}
Please use the above commands(only)....I hope u can login successfully ..
public void Login()
{
selenium.open(BASE_URL);
selenium.type("username", "seltest");
selenium.type("password", "seltest");
selenium.click("loginBtn");
selenium.waitForPageToLoad(MAX_WAIT_TIME_IN_MS);
}
Please use the above commands(only)....I hope u can login successfully ..
Priyanka- Regular Participant

- Posts: 27
Join date: 2010-10-04
Re: RC Browser closed in the middle of execution
Thanks for the quick response.
I tried with the above code. But the problem still exist.
The browser closes after open statement and the execution gets halted.
In console I can see the last message
Command request: open[http://example.tools.com/app-admin/, ] on session 416d3231f0b544eda749fb31e0b11e53
I tried with the above code. But the problem still exist.
The browser closes after open statement and the execution gets halted.
In console I can see the last message
Command request: open[http://example.tools.com/app-admin/, ] on session 416d3231f0b544eda749fb31e0b11e53
seltestng- Posts: 2
Join date: 2010-12-02
Similar topics» fetish execution by hanging
» RC Browser closed in the middle of execution
» safari browser is not able to execute my testsuite:
» how to generate execution reports using seleniumRC+Junit+
» Avoid browser closing on selenium RC shutdown
» RC Browser closed in the middle of execution
» safari browser is not able to execute my testsuite:
» how to generate execution reports using seleniumRC+Junit+
» Avoid browser closing on selenium RC shutdown
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
» sample webdriver code for php users
» which standalone server to use
» Dynamic Drop Down Selection
» It is possible to find list of all URL's exist in any web page in selenium ide
» It is possible to compare 2 same images in selenium IDE.
» how to compare 2 ULR's which is exist in same web page (View page source).
» Web Driver: Unable to click a link present inside the frame of a frameset
» Help me to get dynamicaly loaded options of dropdown in Selenium RC -Junit test case