Archive

Posts Tagged ‘iframe’

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.

Categories: watir Tags: , ,

Send data into an inner html of iframe by watir

October 25th, 2008 No comments

I tried to input data to the inner html of iframe by watir for several months, and posted questions to many forums but got no answer.

Yesterday an idea came into my mind, and I found a solution, following is the code:

ie77.frame(:id, /Editor/).document.body.innertext = “good and better”

Related Blogs

  • Related Blogs on innerpage
Categories: watir Tags: , ,