Here is a simple source code to log into orkut.

You simply cannot find any links or anything because the document
retains the JavaScript code, not the actual JavaScript result.

See ie.html below to understand what I am talking about.

Is there anyway to make the Watir document gets updated with whatever
is showing in the browser? That sounds like a silly/non-sense
question, but that's exactly what is happening. :-(

require 'watir'

test_site = 'http://www.orkut.com'

ie = Watir::IE.new

ie.goto(test_site)

sleep 1

ie.text_field(:name, 'Email').set('[EMAIL PROTECTED]')
ie.text_field(:name, 'Passwd').set('abc123')
ie.button(:name, "signIn").click

sleep 5

puts ie.text

puts

puts ie.html

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to