I am trying to login into Sears.com using Selenium webdriver.clicked on Sign in link-->login form opens.
But unable to locate the text box element inside the login form. The login form is inside an iframe (frame Name =easyXDM_default5914_provider).This iframe is inside div (id=modaliframe)
driver.switchTo().frame(driver.findElement(By.xpath(".//iframe[@id='easyXDM_default5914_provider']")));
driver.switchTo().activeElement();
driver.findElement(By.id("email")).sendKeys("[email protected]");
Getting below exception in my console:
org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"id","selector":"email"}
switchTo().activeElement()? Also the IFRAME ID seems to change, so try.//iframe[starts-with(@name, 'easyXDM_')]- D.R.