I created a java project in eclipse using Selenium jar files . While running with JUnit test i am getting the Java Exception error :
package com.example.tests;
import com.thoughtworks.selenium.*;
import java.util.ArrayList; import java.util.HashMap; import com.infy.csvUtil.CSVFileReader;
public class Creation extends SeleneseTestCase { public void setUp() throws Exception { setUp("http://14.126.220.15:84333/", "*firefox"); }
public void Creationv2() throws Exception {
try {
selenium.open("CCC/CEP?REQUEST=SIGNONREQ");
} catch (Exception e) {
e.printStackTrace();
}
selenium.selectWindow(null);
assertEquals("Selected panel window", selenium.getTitle());
selenium.type("SignonUserName", "sssss");
selenium.type("SignonPassword", "fewere");
selenium.click("button1");
if (selenium.isAlertPresent()) {
selenium.getAlert();
}
I am getting the following error while running:
**Java.lang.Assertionexception:Expected "Selected panel window" but saw ""instead.