- sree.dimit
- Posts : 1
Join date : 2011-01-31
I am getting a save pop-over on running my RC script.
Mon Jan 31, 2011 4:27 pm
When I run my Selenium RC script, Istead of opening my application [that I am written to opwn in the script] , it opens the following URL and a save pop-over displayed and unable to proceed with the script run.
URL: http://localhost:4444/selenium-server/core/Blank.html?start=true
My script is as below:
package com.contactme;
import com.thoughtworks.selenium.*;
import org.openqa.selenium.server.SeleniumServer;
import org.testng.annotations.*;
import static org.testng.Assert.*;
import java.util.regex.Pattern;
import com.thoughtworks.selenium.SeleneseTestCase;
public class login extends SeleneseTestCase {
@BeforeClass
public void setUp() throws Exception {
SeleniumServer seleniumserver = new SeleniumServer();
seleniumserver.boot();
seleniumserver.start();
setUp("Here I entered my test sites URL, sorry I can not explore it here", "*firefox");
// selenium.windowMaximize();
}
@AfterClass
public void tearDown() {
selenium.close();
selenium.stop();
}
@Test
public void testUntitled() throws Exception {
selenium.open("/");
selenium.click("nav_login");
selenium.waitForPageToLoad("30000");
selenium.type("user_email", "here I used a login email ID");
selenium.type("user_password", "here is the password to enter");
selenium.click("//input[@type='image']");
selenium.waitForPageToLoad("30000");
verifyTrue(selenium.isTextPresent("(logout)"));
}
}
URL: http://localhost:4444/selenium-server/core/Blank.html?start=true
My script is as below:
package com.contactme;
import com.thoughtworks.selenium.*;
import org.openqa.selenium.server.SeleniumServer;
import org.testng.annotations.*;
import static org.testng.Assert.*;
import java.util.regex.Pattern;
import com.thoughtworks.selenium.SeleneseTestCase;
public class login extends SeleneseTestCase {
@BeforeClass
public void setUp() throws Exception {
SeleniumServer seleniumserver = new SeleniumServer();
seleniumserver.boot();
seleniumserver.start();
setUp("Here I entered my test sites URL, sorry I can not explore it here", "*firefox");
// selenium.windowMaximize();
}
@AfterClass
public void tearDown() {
selenium.close();
selenium.stop();
}
@Test
public void testUntitled() throws Exception {
selenium.open("/");
selenium.click("nav_login");
selenium.waitForPageToLoad("30000");
selenium.type("user_email", "here I used a login email ID");
selenium.type("user_password", "here is the password to enter");
selenium.click("//input[@type='image']");
selenium.waitForPageToLoad("30000");
verifyTrue(selenium.isTextPresent("(logout)"));
}
}
- Running Selenium RC test script in Firefox under Linux.
- How to recognize the pop up window during running script
- Script Running Fine in C#, not in NUnit
- Issue while running selenium webdriver script through ssh
- Unable to start script execution in IE browser it is showing IE Script Error with 'Yes' or 'No' buttons for Continue script execution or no.
Permissions in this forum:
You cannot reply to topics in this forum