I have written the below code to login to the ["http://www.quikr.com/"][1] using selenium IE webdriver (64 bit) and IE 11 browser. But the selenium IE webdriver is unable to click on the 'Sign In' link. Could you please help on the same.
I'm Using:
IE Version: 11
Selenium Version: Version 3.0.1
OS: Win10 64 bit
Java: 1.8
package Selenium_WebDriver_Part1;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.remote.CapabilityType;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
public class Quikr1 {
public static WebDriver driver=null;
@Test
public void loginTest() throws InterruptedException {
System.setProperty("webdriver.ie.driver", "C:\\Eclipse\\Drivers\\IEDriverServer.exe");
DesiredCapabilities ieCaps = DesiredCapabilities.internetExplorer();
ieCaps.setCapability(InternetExplorerDriver.INITIAL_BROWSER_URL, "http://www.quikr.com/");
ieCaps.setCapability(CapabilityType.BROWSER_NAME, "IE");
ieCaps.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true);
ieCaps.setCapability(InternetExplorerDriver.IE_ENSURE_CLEAN_SESSION, true);
driver = new InternetExplorerDriver(ieCaps);
driver.manage().window().maximize();
Thread.sleep(10000);
WebDriverWait wait = new WebDriverWait(driver, 10);
wait.until(ExpectedConditions.elementToBeClickable(By.xpath(".//*[@class='sign-in']"))).click();
//driver.findElement(By.xpath(".//*[@id='fullnameFromPopUp']")).sendKeys("UserName");
//driver.findElement(By.xpath(".//*[@id='password']")).sendKeys("Password");
//driver.findElement(By.xpath(".//*[@class='btn btn-default btn-default-submit btn-lg btn-block login-btn']")).click();
}
}