I want to use XPath (or another Selenium DSL locator) to access a dynamically created iframe . My goal is to make some statements about the contents of this dynamic iframe.
iframe has no identifier and only has the following HTML attributes:
src="javascript:""" style="position: absolute; left: -2000px;"
If I can somehow select a Frame, then an iframe , then I can assertText or use XPath to check iframe internal constraints.
However, simple approaches seem to fail. For some reason, selectFrame("index=0") not working. Maybe I need a waitFor way waitFor load the iframe . But I cannot create a locator id for the iframe , so I cannot waitFor .
selenium iframe
Dave viner
source share