How watir reads the page source

Hi,

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
wise.

Earlier i use this command to get page source –

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

But now it is –

“javascript:’’%20+%20document.getElementById(“flatViewFrame”).contentWindow.document.body.outerHTML+%20’'”

“javascript:’’%20+%20document.getElementById(“tableViewFrame”).contentWindow.document.body.outerHTML+%20’'”

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.

Bhavesh

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