I switch from frame 4 to frame 5 then I click on the link and want to verify whether the logo is present or not.
I did switch the frame from 4 to 5 and also clicked on the link it also happened but can’t able to verify the logo.
//frame4
WebElement frame4= driver.findElement(By.xpath(“//frame[@src=’frame_4.html’]”)); driver.switchTo().frame(frame4); driver.findElement(By.xpath(“//input[@name=’mytext4′]”)).sendKeys(“Assignment”);
driver.switchTo().defaultContent();
//switch to frame5
WebElement frame5 =driver.findElement(By.xpath("//frame[@src='frame_5.html']"));
driver.switchTo().frame(frame5);
driver.findElement(By.xpath("//input[@name='mytext5']")).sendKeys("frames");
driver.findElement(By.xpath("/html/body/center/a")).click();
boolean b =driver.findElement(By.xpath("//img[@alt='UI Vision by a9t9 software - Image-Driven Automation']")).isDisplayed();
if(b)
{
System.out.println("Present");
}
else
{
System.out.println("not ");
}