Home > watir > There is no property of class for iframe in watir

There is no property of class for iframe in watir

November 2nd, 2009 Leave a comment Go to 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.



Categories: watir Tags: , ,
  1. No comments yet.
      
                  
      

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word