Closed dehanw closed 6 years ago
Unfortunately we can't create click events for iframes that are cross-domain using a JS method alone, however the web drivers should be able to switchTo
the frame
The step definition for TabAndWindow should be able to provide insight on an implementation.
Once the driver is switched to the iframe it should be possible to perform tasks as long as they're not javascript-assisted (ie. copying out values may not be possible, but entering them in as keystrokes should be - clicking elements targeted by a path should work, but sending click events by JS should not).
Requirements for this work should include:
"I switch to an iframe"
with variations
int index
String nameOrId
WebElement frameElement
- https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/WebElement.html#findElement-org.openqa.selenium.By-"I switch to the default content"
README.md
, feature file and JNLP to execute
Pull request created
Now, Iridium supports switching to new tab, new window and new alert. In some cases, have to handle the elements within iframes.