I'm logged into a webpage/servlet using Mechanize.
I have a page object:
jobShortListPg = agent.get(addressOfPage)
When I use:
puts jobShortListPg
I get the "mechanized" version of the page which I don't want:
#<Mechanize::Page::Link "Home" "blahICScriptProgramName=WEBLIB_MENU.ISCRIPT3.FieldFormula.IScript_DrillDown&target=main0&Level=0&RL=&navc=3171">
How do I get the HTML source of the page instead?
Use .body
:
puts jobShortListPg.body
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With