I wanna handle the sign-in part of www.rediff.com. But the below code doesn't work for me:
driver.get("http://www.rediff.com/");
WebElement sign = driver.findElement(By.xpath("//html/body/div[3]/div[3]/span[4]/span/a"));
sign.click();
String myWindowHandle = driver.getWindowHandle();
driver.switchTo().window(myWindowHandle);
WebElement email_id= driver.findElement(By.xpath("//*[@id='signin_info']/a[1]"));
email_id.sendKeys("myEmailID@rediff.com");
If myWindowHandle is not the correct way to handle this popup, then how else can i do it because I can't find the name of the pop-up window.