I have written a script for login for our appplication.The code is mentioned below:
package Sample.src;
import com.thoughtworks.selenium.*;
//import java.util.regex.Pattern;
public class login extends SeleneseTestCase {
public void setUp() throws Exception {
}
public void testLogin() throws Exception {
selenium.type("name=password", "cic123");
selenium.click("css=button.orange-btn_login");
selenium.waitForPageToLoad("90000");
selenium.click("css=img");
selenium.waitForPageToLoad("90000");
}
}
But while running the script it is launching the browser and is redirected to a temporary page with the below url instead of the intended application:
file:///C:/Users/Administrator/AppData/Local/Temp/customProfileDire3ff866f45294f6d92af3ce2a2348443/core/Blank.html?start=true
Can anybody please highlight the problems and the solution.