You can't access elements within Iframe from the top document. In webdriver, to handle Iframes you should switch your context to the Iframe first by calling driver.switchTo.frame() API Below code block will explain you how to handle elements within an Iframe using selenium webdriver driver.get("http://www.w3schools.com/html/tryit.asp?filename=tryhtml_iframe_target");
0 Comments
|