How do I select elements inside an iframe with Xpath?
First indentify the element of iframe , use driver switchto method to focus inside the iframe then you can use XPath locator strategy to identify elements inside iframe.
To transition back and forth from iframes, Selenium provides the following built-in techniques.
switchTo.frame(int frameNumber) switchTo.frame(string frameName) switchTo.frame(WebElement frameElement) switchTo().defaultContent()