Pick pop-up text and oracle DB connectivity issue

Guys,

I want it badly, so please help me out if there is any scope.

First Problem: On Login page, when we submit the form without entering
"confirm password" value, it gives pop-up message i.e "Confirm
Password- Entry Required.", same is the case with other validations.

My requirement is to pick that pop-up message text.

Is it possible?

Second Problem: Oracle/Ruby connectivity

I am using: Ruby 1.8.6 26
Watir 1.4.1
Windows XP
Auto it V3
ruby-oci8-1.0.6-x86-mswin32-60.gem

My code is:

require 'oci8'
OCI8.new("mlbread", "mlbread", "test").exec('select * from
bam_order.ec_invoice where order_id = 139920') do |r|
puts r.join(',')
end

My TNS Entry is:
test=
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.100.110)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SID = mlbd)
      (SERVER = DEDICATED)
    )
  )

Here i am getting:
c:/ruby/lib/ruby/site_ruby/1.8/oci8.rb:52:in `init': OCI Library
Initialization
Error (OCIError)
        from c:/ruby/lib/ruby/site_ruby/1.8/oci8.rb:52

Really tired of searching a solution for both
Please help me out.

Regards
Dheeraj Gambhir

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.