Hi I am calling a login function but it throws a session not found exception I have saved Login as a library
import lib.Login;
public class MessageBoard {
WebDriver driver;
@BeforeMethod
public void initalise()
{
System.setProperty("webdriver.ie.driver", "C:\\Eclipse\\IEDriverServer.exe");
DesiredCapabilities caps=new DesiredCapabilities();
caps.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);
driver=new InternetExplorerDriver(caps);
}
@Test
public void LogintoSystem()
{
driver.manage().window().maximize();
driver.get("http://segotn11540.rds.volvo.com/vss_connect_testr1/Login/Login.aspx");
Login login=new Login("TYP40FI","Volvo");
}
I am getting the below error FAILED: LogintoSystem org.openqa.selenium.remote.SessionNotFoundException: Unexpected error launching Internet Explorer. Protected Mode settings are not the same for all zones. Enable Protected Mode must be set to the same value (enabled or disabled) for all zones. (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 555 milliseconds