[quote:3763nndw]t displayed one..but in page source there is no iframe tag.[/quote:3763nndw]
iframe sometimes get created dynamically. so, it will not show up in the page source.
right click on the pop up to find if it's in the frame or not. and in selenium then switch to that frame.
Hi,
There is no 'this frame' when i right click on the popup and when i run without/with switching to frame I get nosuchelement exception error for email field. I have added attachments.pls suggest.
use this
[code:m4dr23il]package com.sample;
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
public class test {
public static void main(String[] args) throws InterruptedException {
WebDriver driver = new FirefoxDriver();
driver.manage().window().maximize();
driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
driver.get("https://www.flipkart.com/");
driver.findElement(
By.xpath("//*[@id='container']/div/header/div[1]/div[1]/div/ul/li[9]/a"))
.click();
List<WebElement> x = driver.findElements(By
.xpath("//input[@type='text']"));
x.get(1).sendKeys("qwe4rtyu");
driver.findElement(By.xpath("//input[@type='password']")).sendKeys(
"qwe4rtyu");
driver.quit();
}
}
[/code:m4dr23il]