There is no property of class for iframe in watir
November 2nd, 2009
No comments
I encountered an iframe in a webpage which say “iframe class = “the_iframe”, I tried but failed to access the iframe by:
ie.frame(:class, “the_iframe”)
and then I figured out there is no property of class for iframe in watir, and find the iframe by index:
ie.frame(:index, 1)
we can use ie.show_frames to find how many frames are there in a webpage.