[wtr-general] popup handling

2010-01-21 Thread Naveen devadass
Hi All,


 I am using following script to handle the pop up

but the code is not woking

the code  autoit.Send({Enter}) is not working .it doesnot  send the
key strokes properly


please help me in this regard

or please give me some other options to handle the pop up
effectively.currently  i am using watir 1.6.2

require 'watir'
 require 'win32ole'
require 'watir/dialog'
require 'watir/winClicker'
require 'watir/contrib/enabled_popup'

# MAIN APPLICATION CODE
link = '\\\hcl0203\Release 3\Automated Testing\popups Handling
\Sampl1.html'

ie = Watir::IE.start(link)
ie.button(:value, 'Click').click


def check_for_popups(title, button)
popup=Thread.new {
autoit=WIN32OLE.new('AutoItX3.Control')
ret=autoit.WinWait(title,,5)
if (ret==1)
autoit.WinActivate(title)
button.downcase!
if button.eql?(ok) || button.eql?(yes) || button.eql?
(continue)
autoit.Send({Enter})
else
autoit.Send({tab})
autoit.Send({Enter})
end
elsif (ret==0)
puts No popup, please check your code.
end
}
at_exit { Thread.kill(popup) }
end

check_for_popups(, OK)
-- 
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

[wtr-general] Re: After upgrading to Watir 1.6.2, it is not working fine.

2009-10-26 Thread Naveen devadass

HI ,
I am getting following

C:\gem list watir
*** LOCAL GEMS ***
watir (1.6.1)

Please help me out.i am unble to use the watir

On Oct 22, 1:32 pm, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 On Thu, Oct 22, 2009 at 9:16 AM, Naveen devadass naveeenku...@gmail.com
 wrote:

  irb(main):002:0 require watir
  LoadError: no such file to load -- watir

 Do you have watir installed?

 What do you get when you type this in command prompt:

 gem list watir

 Željko
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[wtr-general] Re: After upgrading to Watir 1.6.2, it is not working fine.

2009-10-22 Thread Naveen devadass

Hi,

I tried adding require rubygems but i did not get the error
rectified and i got following

C:\irb
irb(main):001:0 require rubygems
= false
irb(main):002:0 require watir
LoadError: no such file to load -- watir
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
from (irb):2
irb(main):003:0 require 'watir'
LoadError: no such file to load -- watir
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
from (irb):3
irb(main):004:0

C:\

Please let me what i need to do further

Thanks in advance
Naveen




On Oct 22, 7:13 am, Bret Pettichord b...@pettichord.com wrote:
 Željko Filipin wrote:
   I'm using the latest release candidate of Ruby 1.8.6-27 on a PC

  I do not think that is the problem, buthttp://watir.com/installation/
  says: We recommend using Ruby 1.8.6-26 with Watir 1.6.

  Željko

 Zeljko,

 We say this because of a click-no-wait bug in 1.8.6-27. FYI, this bug is
 fixed in watir 1.6.5 (forthcoming).

 Bret

 --
 Bret Pettichord
 Lead Developer, Watir,www.watir.com
 Blog,www.io.com/~wazmo/blog
 Twitter,www.twitter.com/bpettichord
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[wtr-general] gem install watir-Error

2009-09-14 Thread Naveen devadass

Hi all,

I am trying to the update the watir ,but while executing i am getting
the below error

Can some one help on this to rectify.
its urgent please help

C:\gem install watir
ERROR:  http://gems.rubyforge.org/ does not appear to be a repository
ERROR:  Error installing watir:
watir requires win32-process (= 0.5.5, runtime)

Thanks in advance
Naveen
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[wtr-general] Re: Need to get emails from page

2009-09-14 Thread Naveen devadass

Hi John,

Use the below code to capture the text of the page

variable=ie.text

now the variable will contain all the text appears on the page where
you can able to take the email's

regards,
Naveen

On Sep 14, 2:32 am, dave johnson 1doglover1...@gmail.com wrote:
 I want to get all my friend's email addresses off of Facebook but I
 can't figure out how to get the text off the page.

 require 'watir'

 ie = Watir::IE.new

 ie.goto(someones_profile)

 if ie.link(:text= Info).exists?
         ie.link(:text= Info).click
        #get email
 end
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[wtr-general] Re: gem install watir-Error

2009-09-14 Thread Naveen devadass

Hi ,

DO you know how to update this

Many Thanks,
Naveen

On Sep 14, 11:54 am, zakir hussain zaki...@gmail.com wrote:
 Naveen : You need to update the win32-process which has the version greater
 than 5.5

 -zakir

 On Mon, Sep 14, 2009 at 12:06 PM, Naveen devadass 
 naveeenku...@gmail.comwrote:







  Hi all,

  I am trying to the update the watir ,but while executing i am getting
  the below error

  Can some one help on this to rectify.
  its urgent please help

  C:\gem install watir
  ERROR:  http://gems.rubyforge.org/does not appear to be a repository
  ERROR:  Error installing watir:
         watir requires win32-process (= 0.5.5, runtime)

  Thanks in advance
  Naveen

 --
 Best Regards

 zakir- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[wtr-general] Need a sample code to import test data from Excel sheet

2009-08-11 Thread Naveen devadass

Hi all,
Can you please help on this

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---