Not selecting from city field by using selenium webdriver and java language on Makemytrip application.
public class LoginPage {
public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver", "chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("http://www.makemytrip.com/");
driver.manage().window().maximize();
driver.findElement(By.id("fromCity")).click();
}
}
console error:
Exception in thread "main" org.openqa.selenium.WebDriverException: element click intercepted: Element input data-cy="fromCity" id="fromCity" type="text" class="fsw_inputField font30 lineHeight36 latoBlack" readonly="" value="Delhi"> is not clickable at point (244, 255). Other element would receive the click: div data-cy="outsideModal" class="loginModal displayBlock modalLogin dynHeight personal ">