How to duck type? - the psychology of static typing in Ruby

J

James Britt

Eric said:
James Britt ([email protected]) wrote:

I've been using Ruby at my current job to test a web app via Internet
Explorer with the clIEController [0].

The downside is it only scripts IE, and (to the best of my knowledge),
you cannot get to the raw markup returned to the scripted browser, so it
doesn't help you verify, for example, that each page is rendered as you
expect.


You should be able to fetch it with something like:

document.root.outerHTML


Yes and no. That's available via the controller, but it gives you some
odd internal IE version of the markup; it's not the same as what you
would see if you did View|Source on the browser itself.

It's rather funky looking, so you would need to pass it through some
HTML cleaner to make it palatable to REXML.

Since it's not the markup sent from the server, and it's not XML, I
found it simpler to just walk the node tree and create the XML myself.



James
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top