How watir reads the page source


Currently i am using ie.html and ie.text to get the page source and then
using this i can actaully clicking on the objects etc.

JHowvere there are some changes done recently and now im not able to see
page source. It is like frame wise.

When talked with developer, it is replied like now page source is frame

Earlier i use this command to get page source –

“javascript:’’ + window.document.body.outerHTML+ ''”

But now it is –



So i dont know what Watir uses bydefault?

I there any way i can change it in Watir so that i can get the source.

If i fire my script it is failing.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs