I am very new to ruby and am having some problems with threading...
It just hangs up.. never does anything. And when I abort it, I get
this error message:
C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
firefox.rb:1078:in 'raise': exception class/object expected
     from profileTest.rb:23:in 'join'
     form profileTest.rb:23

profileTest.rb is the name of the script I am working on.  The plan is
to open 2 different profiles of firefox and have one sign into
facebook and the other into bebo with the same email and password.

My code is as follows:

require 'firewatir'

email = "xx...@xxx.com"
password = "xxxxxxxxx"

        ff1 = FireWatir::Firefox.new(:port => 10001, :profile => 'watir1')
        ff2 = FireWatir::Firefox.new(:port => 10001, :profile => 'watir2')

t1 = Thread.new {
        ff1.goto("http://www.facebook.com/login.php";)
        ff1.text_field(:id => "email", :name => "email").value = email
        ff1.text_field(:id => "pass", :class => "inputpassword").value =
password
        ff1.button(:id => "login", :type => "submit").click
}

t2 = Thread.new {
        ff2.goto("http://www.bebo.com/SignIn.jsp";)
        ff2.text_field(:id, :EmailUsername).value = email
        ff2.text_field(:id, :Password).value = password
        ff2.button(:name, :SignIn).click
}

t1.join
t2.join
--~--~---------~--~----~------------~-------~--~----~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to