[wtr-general] Re: Watir as Web Crawler

2009-07-08 Thread Raveendran P
Yes. I have user watir as a Web Crawler.

On Wed, Jul 8, 2009 at 2:25 PM, Ravinder Singroha 
ravindersingr...@gmail.com wrote:


 Hi All
 Is any body use Watir as Web Crawler ever ?
 Waiting for some positive response :)

 Thx
 Ravinder Singroha
 



-- 
Regards,
P.Raveendran

--~--~-~--~~~---~--~~
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: Watir as Web Crawler

2009-07-08 Thread Raveendran P
Hi Sindroha,

Yes. I can share my codes. today my shift time closed. I will be avilable
tomoroow. ill catch u tomorrow.

ping me at jazzezr...@gmail.com

On Wed, Jul 8, 2009 at 4:50 PM, Ravinder Singroha 
ravindersingr...@gmail.com wrote:


 Hi Raveendran

 is there any possibility that you can share that code with me.

 Thanks

 Ravinder Singroha

 On Jul 8, 4:08 pm, Raveendran P raveend...@railsfactory.org wrote:
  Yes. I have user watir as a Web Crawler.
 
  On Wed, Jul 8, 2009 at 2:25 PM, Ravinder Singroha 
 
  ravindersingr...@gmail.com wrote:
 
   Hi All
   Is any body use Watir as Web Crawler ever ?
   Waiting for some positive response :)
 
   Thx
   Ravinder Singroha
 
  --
  Regards,
  P.Raveendran
 



-- 
Regards,
P.Raveendran

--~--~-~--~~~---~--~~
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] Embed tag - watir

2009-07-18 Thread Raveendran P
Hi All,

1. One OBJECT is available.

2. The source code for the OBJECT is


div id=uploaderapi_swf_placeholder

embed id=uploaderapi_swf height=1 width=1
flashvars=apiId=uploaderapi_swfapiInit=uploaderapi_Ready style=left:
553.5px; top: 159px; width: 98px; height: 23px;
allowscriptaccess=always wmode=transparent quality=high
name=uploaderapi_swf
src=http://s.ytimg.com/yt/swf/uploaderapi-vfl81865.swf;
type=application/x-shockwave-flash/

/div

3. I need to click the OBJECT.

I have tried:

$ie.element_by_xpath(//emb...@id='uploaderapi_swf'])
==
main.rb:18: undefined method `click' for nil:NilClass (NoMethodError)



*THE FULL CODE* is :

require 'rubygems'
require 'watir'
$ie=Watir::IE.new

#$ie.maximize()
$ie.goto(http://www.youtube.com/;)
sleep(2)
$ie.link(:text, 'Sign In').click
sleep(2)
$ie.form(:id, 'gaia_loginform').text_field(:id,
'Email').set('jazzezravi')
$ie.form(:id, 'gaia_loginform').text_field(:id, 'Passwd').set('jazzez')
$ie.button(:name, 'signIn').click
sleep(2)
$ie.link(:text, 'Upload Video File').click
sleep(2)


#Here i am struggling to click the object upload video

$ie.element_by_xpath(//emb...@id='uploaderapi_swf']) #== NEED HELP
HERE



Please help to do this

-- 
Regards,
P.Raveendran

--~--~-~--~~~---~--~~
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: Embed tag - watir

2009-07-18 Thread Raveendran P
Hi All,

require 'rubygems'
require 'watir'
$ie=Watir::IE.new
$ie.goto(http://www.youtube.com/;)
sleep(2)
$ie.link(:text, 'Sign In').click
sleep(2)
$ie.form(:id, 'gaia_loginform').text_field(:id, 'Email').set('jazzezravi')
$ie.form(:id, 'gaia_loginform').text_field(:id, 'Passwd').set('jazzez')
$ie.button(:name, 'signIn').click
sleep(2)
$ie.link(:text, 'Upload Video File').click
sleep(5)
$ie.button(:value,Upload Video).click

When i run this code The error says :

c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:57:in
`assert_enabled': object value and Upload Video is disabled
(Watir::Exception::ObjectDisabledException)
from
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:229:in
`click!'
from
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:215:in
`click'
from main.rb:25

Any idea ? I need to click the button and give the URL for further actions

awaiting reply...

--~--~-~--~~~---~--~~
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: asset_enabled error to click a button

2009-07-18 Thread Raveendran P
Hi Venki,

Any luck ?

I am also facing the same issue. Please reply to me about this issue...

Awaiting your reply..



On Sat, May 30, 2009 at 1:02 PM, Venkat venkateshla...@gmail.com wrote:


 I wrote a code to click on button
 ie.button(:id, action_button).click

 But I am getting following errors:
 C:\Documents and Settings\\Desktopruby two-minute.rb
 C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:57:in
 `assert_e
 abled': object id and action_button is disabled
 (Watir::Exception::ObjectDisabl
 dException)
from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
 element.rb:22
 :in `click!'
from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
 element.rb:21
 :in `click'
from two-minute.rb:18

 HTML Source code of the button

 div id=mid_row/div
div id=bot_row
  button type=button class=button id=action_button/
 button
/div

 My guess is my syntax is right but still its not clicking on button. I
 am not sure why?



 



-- 
Regards,
P.Raveendran

--~--~-~--~~~---~--~~
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: Embed tag - watir

2009-07-18 Thread Raveendran P
Hi,

html CODE:

div class=flash-initial-state style=display: none; overflow: hidden;
form class=flash-form style=display: none;
input type=hidden name=uploader_type value=Web_Flash
input type=hidden name=return_address value=www.youtube.com
input type=hidden name=json_reply value=1

input type=hidden name=action_postvideo value=1
input type=hidden name=ismultiflash value=1
input type=hidden name=upload_key
value=2F413ADE7F2472C2-44113B402E1726D1
/form
input type=button class=flash-upload-button value=Upload Video
style=float: right;
span class=file-form-instructionsPress Upload Video to select and
upload another video file./span
/div


Awaiting reply...

Thanks


On Sat, Jul 18, 2009 at 2:23 PM, Raveendran P
raveend...@railsfactory.orgwrote:

 Hi All,

 require 'rubygems'
 require 'watir'
 $ie=Watir::IE.new
 $ie.goto(http://www.youtube.com/;)
 sleep(2)
 $ie.link(:text, 'Sign In').click
 sleep(2)
 $ie.form(:id, 'gaia_loginform').text_field(:id, 'Email').set('jazzezravi')
 $ie.form(:id, 'gaia_loginform').text_field(:id, 'Passwd').set('jazzez')
 $ie.button(:name, 'signIn').click
 sleep(2)
 $ie.link(:text, 'Upload Video File').click
 sleep(5)
 $ie.button(:value,Upload Video).click

 When i run this code The error says :

 c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:57:in
 `assert_enabled': object value and Upload Video is disabled
 (Watir::Exception::ObjectDisabledException)
 from
 c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:229:in
 `click!'
 from
 c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:215:in
 `click'
 from main.rb:25

 Any idea ? I need to click the button and give the URL for further actions

 awaiting reply...

 



-- 
Regards,
P.Raveendran

--~--~-~--~~~---~--~~
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: How to click the link in dynamically generated ajax content?

2009-08-07 Thread Raveendran P
Hi Durgesh,

is it possible to paste the html code for that link here ?

Thanks,
Raveendran
http://raveendran.wordpress.com

On Fri, Aug 7, 2009 at 1:44 PM, Durgesh durgeshnadka...@gmail.com wrote:


 Hi,

 I want to click one link which is coming from dynamically generated
 ajax contents.The source could not be found when I do view source.

 Thanks  Regards
 Durgesh
 



-- 
Regards,
P.Raveendran

--~--~-~--~~~---~--~~
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: undefined method `{ENTER}' for #Watir::IE:0x3ee7b9c

2009-08-07 Thread Raveendran P
Hi Marlon,

It seems the ENTER key is clicked but not in IE browser. Focus missing here.


Please  use $ie.div(:id,ANY).focus  --  before press enter key.

May be it will work ...




On Fri, Aug 7, 2009 at 2:49 PM, Marlon marlonmoja...@gmail.com wrote:



 Yes i already tried that, no error but its not pressing enter key. I'm
 still searching for the solution.
 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: How to click the link in dynamically generated ajax content?

2009-08-09 Thread Raveendran P
Hi Durgesh,

See the below example.
1. Uploading some imsges
2. In Runtime -- I will get some code in BOLDED Div's. I collected the info
from that div and checked it.

Still you are not clear then just copy and paste the Source code for that
page. I will try more.

CODE:


def check_status
sleep(2)

*@status=$ie.div(:class,display-states).html
@blo...@status.scan(%r{style=DISPLAY:
block(.*?)/div}im).flatten.to_s  *
@su...@block.include?(Success)
@que...@block.include?(Queued)
@uploadi...@block.include?(Uploading)
@canc...@block.include?(Cancelled)
@err...@block.include?(Error)

if @succ == true
  return
end

if @queue == true
  sleep(20)
  check_status
end

if  @uploading== true
  sleep(10)
  check_status
end


if  @cancel== true
  $ie.link(:text,Retry)
  sleep(20)
  check_status
end

if  @error== true
  $ie.link(:text,Retry)
  sleep(20)
  check_status
end
  end

end

Thanks


On Fri, Aug 7, 2009 at 6:13 PM, Durgesh Nadkarni fordurg...@yahoo.co.inwrote:

 Hi Raveendran,

 That HTML code is getting during runtime. Thats why we cannot paste the
 html code for that link.

 Is there any other method through which we can recognized that link?

 Thanks  Regards
 Durgesh.

 --- On *Fri, 7/8/09, Raveendran P raveend...@railsfactory.org* wrote:


 From: Raveendran P raveend...@railsfactory.org
 Subject: [wtr-general] Re: How to click the link in dynamically generated
 ajax content?
 To: watir-general@googlegroups.com
 Date: Friday, 7 August, 2009, 2:58 PM

 Hi Durgesh,

 is it possible to paste the html code for that link here ?

 Thanks,
 Raveendran
 http://raveendran.wordpress.com

 On Fri, Aug 7, 2009 at 1:44 PM, Durgesh 
 durgeshnadka...@gmail.comhttp://mc/compose?to=durgeshnadka...@gmail.com
  wrote:


 Hi,

 I want to click one link which is coming from dynamically generated
 ajax contents.The source could not be found when I do view source.

 Thanks  Regards
 Durgesh




 --
 Regards,
 P.Raveendran



 --
 See the Web's breaking stories, chosen by people like you. Check out Yahoo!
 Buzz http://in.rd.yahoo.com/tagline_buzz_1/*http://in.buzz.yahoo.com/

 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: How to click the link in dynamically generated ajax content?

2009-08-12 Thread Raveendran P
Hi Durgesh,

Way 1 -- use sleep commands until the link was enabled.

way 2 -- Still the field disabled then Watir gem code is here ...

# File lib/watir/element.rb, line 283
def enabled?
  assert_exists
  return ! disabled
end



Thanks

On Tue, Aug 11, 2009 at 6:12 PM, Durgesh Nadkarni fordurg...@yahoo.co.inwrote:

 Hi Reveendran,

 Thanks a lot for the given code. But the code which I am getting is as
 follows:

 div class=prev_arrow_img
 a count=0 class=PageLinkDisable 
 href=/RSCpubs.ePlatform.Web/en/Search/JournalResultPrevious/a
 /div

 Currently the 'Previous' link is disabled. But when I use verify statement it 
 does not recognized that link is disabled.

 Thanks  Regards
 Durgesh.

 --- On *Mon, 10/8/09, Raveendran P jazzezr...@gmail.com* wrote:


 From: Raveendran P jazzezr...@gmail.com
 Subject: [wtr-general] Re: How to click the link in dynamically generated
 ajax content?
 To: watir-general@googlegroups.com
 Date: Monday, 10 August, 2009, 9:51 AM

 Hi Durgesh,

 See the below example.
 1. Uploading some imsges
 2. In Runtime -- I will get some code in BOLDED Div's. I collected the
 info from that div and checked it.

 Still you are not clear then just copy and paste the Source code for that
 page. I will try more.

 CODE:


 def check_status
 sleep(2)

 * @status=$ie.div(:class,display-states).html
 @blo...@status.scan(%r{style=DISPLAY: block(.*?)/div}im).flatten.to_s
 *
 @su...@block.include?(Success)
 @que...@block.include?(Queued)
 @uploadi...@block.include?(Uploading)
 @canc...@block.include?(Cancelled)
 @err...@block.include?(Error)

 if @succ == true
 return
 end

 if @queue == true
 sleep(20)
 check_status
 end

 if @uploading== true
 sleep(10)
 check_status
 end


 if @cancel== true
 $ie.link(:text,Retry)
 sleep(20)
 check_status
 end

 if @error== true
 $ie.link(:text,Retry)
 sleep(20)
 check_status
 end
 end

 end

 Thanks


 On Fri, Aug 7, 2009 at 6:13 PM, Durgesh Nadkarni 
 fordurg...@yahoo.co.inhttp://mc/compose?to=fordurg...@yahoo.co.in
  wrote:

 Hi Raveendran,

 That HTML code is getting during runtime. Thats why we cannot paste the
 html code for that link.

 Is there any other method through which we can recognized that link?

 Thanks  Regards
 Durgesh.

 --- On *Fri, 7/8/09, Raveendran P 
 raveend...@railsfactory.orghttp://mc/compose?to=raveend...@railsfactory.org
 * wrote:


 From: Raveendran P 
 raveend...@railsfactory.orghttp://mc/compose?to=raveend...@railsfactory.org
 
 Subject: [wtr-general] Re: How to click the link in dynamically generated
 ajax content?
 To: 
 watir-general@googlegroups.comhttp://mc/compose?to=watir-gene...@googlegroups.com
 Date: Friday, 7 August, 2009, 2:58 PM

 Hi Durgesh,

 is it possible to paste the html code for that link here ?

 Thanks,
 Raveendran
 http://raveendran.wordpress.com

 On Fri, Aug 7, 2009 at 1:44 PM, Durgesh 
 durgeshnadka...@gmail.comhttp://mc/compose?to=durgeshnadka...@gmail.com
  wrote:


 Hi,

 I want to click one link which is coming from dynamically generated
 ajax contents.The source could not be found when I do view source.

 Thanks  Regards
 Durgesh




 --
 Regards,
 P.Raveendran



 --
 See the Web's breaking stories, chosen by people like you. Check out Yahoo!
 Buzz http://in.rd.yahoo.com/tagline_buzz_1/*http://in.buzz.yahoo.com/





 --
 Regards,
 P.Raveendran
 http://raveendran.wordpress.com




 --
 See the Web's breaking stories, chosen by people like you. Check out Yahoo!
 Buzz http://in.rd.yahoo.com/tagline_buzz_1/*http://in.buzz.yahoo.com/
 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: How to click the link in dynamically generated ajax content?

2009-08-13 Thread Raveendran P
Hi Durgesh,

Are asking this code?

check=browser.link(:id,PageLinkDisabled).enabled?

if check == true
   It is Enabled. Continue your work
else
   It is Disabled
end

If yes then just use it otherwise :)

Thanks

On Thu, Aug 13, 2009 at 6:19 PM, Durgesh Nadkarni fordurg...@yahoo.co.inwrote:

 Hi Raveendran,

 I want to make sure that Previous link is disabled. So I need to use the
 second method given by you. But do I need to pass the parameter to it as
 shown below?

 assert(browser.link(:id,PageLinkDisabled).exists?)

 How can use the given method?

 Thanks  Regards
 Durgesh.



 --- On *Thu, 13/8/09, Raveendran P jazzezr...@gmail.com* wrote:


 From: Raveendran P jazzezr...@gmail.com
 Subject: [wtr-general] Re: How to click the link in dynamically generated
 ajax content?
 To: watir-general@googlegroups.com
 Date: Thursday, 13 August, 2009, 10:06 AM


 Hi Durgesh,

 Way 1 -- use sleep commands until the link was enabled.

 way 2 -- Still the field disabled then Watir gem code is here ...

 # File lib/watir/element.rb, line 283

 def enabled?
   assert_exists
   return ! disabled

 end



 Thanks

 On Tue, Aug 11, 2009 at 6:12 PM, Durgesh Nadkarni 
 fordurg...@yahoo.co.inhttp://mc/compose?to=fordurg...@yahoo.co.in
  wrote:

 Hi Reveendran,

 Thanks a lot for the given code. But the code which I am getting is as
 follows:

 div class=prev_arrow_img
 a count=0 class=PageLinkDisable 
 href=/RSCpubs.ePlatform.Web/en/Search/JournalResultPrevious/a

 /div

 Currently the 'Previous' link is disabled. But when I use verify statement 
 it does not recognized that link is disabled.

 Thanks  Regards
 Durgesh.

 --- On *Mon, 10/8/09, Raveendran P 
 jazzezr...@gmail.comhttp://mc/compose?to=jazzezr...@gmail.com
 * wrote:


 From: Raveendran P 
 jazzezr...@gmail.comhttp://mc/compose?to=jazzezr...@gmail.com
 
 Subject: [wtr-general] Re: How to click the link in dynamically generated
 ajax content?
 To: 
 watir-general@googlegroups.comhttp://mc/compose?to=watir-gene...@googlegroups.com
 Date: Monday, 10 August, 2009, 9:51 AM

 Hi Durgesh,

 See the below example.
 1. Uploading some imsges
 2. In Runtime -- I will get some code in BOLDED Div's. I collected the
 info from that div and checked it.

 Still you are not clear then just copy and paste the Source code for that
 page. I will try more.

 CODE:


 def check_status
 sleep(2)

 * @status=$ie.div(:class,display-states).html
 @blo...@status.scan(%r{style=DISPLAY: block(.*?)/div}im).flatten.to_s
 *
 @su...@block.include?(Success)
 @que...@block.include?(Queued)
 @uploadi...@block.include?(Uploading)
 @canc...@block.include?(Cancelled)
 @err...@block.include?(Error)

 if @succ == true
 return
 end

 if @queue == true
 sleep(20)
 check_status
 end

 if @uploading== true
 sleep(10)
 check_status
 end


 if @cancel== true
 $ie.link(:text,Retry)
 sleep(20)
 check_status
 end

 if @error== true
 $ie.link(:text,Retry)
 sleep(20)
 check_status
 end
 end

 end

 Thanks


 On Fri, Aug 7, 2009 at 6:13 PM, Durgesh Nadkarni 
 fordurg...@yahoo.co.inhttp://mc/compose?to=fordurg...@yahoo.co.in
  wrote:

 Hi Raveendran,

 That HTML code is getting during runtime. Thats why we cannot paste the
 html code for that link.

 Is there any other method through which we can recognized that link?

 Thanks  Regards
 Durgesh.

 --- On *Fri, 7/8/09, Raveendran P 
 raveend...@railsfactory.orghttp://mc/compose?to=raveend...@railsfactory.org
 * wrote:


 From: Raveendran P 
 raveend...@railsfactory.orghttp://mc/compose?to=raveend...@railsfactory.org
 
 Subject: [wtr-general] Re: How to click the link in dynamically generated
 ajax content?
 To: 
 watir-general@googlegroups.comhttp://mc/compose?to=watir-gene...@googlegroups.com
 Date: Friday, 7 August, 2009, 2:58 PM

 Hi Durgesh,

 is it possible to paste the html code for that link here ?

 Thanks,
 Raveendran
 http://raveendran.wordpress.com

 On Fri, Aug 7, 2009 at 1:44 PM, Durgesh 
 durgeshnadka...@gmail.comhttp://mc/compose?to=durgeshnadka...@gmail.com
  wrote:


 Hi,

 I want to click one link which is coming from dynamically generated
 ajax contents.The source could not be found when I do view source.

 Thanks  Regards
 Durgesh




 --
 Regards,
 P.Raveendran



 --
 See the Web's breaking stories, chosen by people like you. Check out Yahoo!
 Buzz http://in.rd.yahoo.com/tagline_buzz_1/*http://in.buzz.yahoo.com/





 --
 Regards,
 P.Raveendran
 http://raveendran.wordpress.com




 --
 See the Web's breaking stories, chosen by people like you. Check out Yahoo!
 Buzz http://in.rd.yahoo.com/tagline_buzz_1/*http://in.buzz.yahoo.com/




 --
 Regards,
 P.Raveendran
 http://raveendran.wordpress.com




 --
 Yahoo! recommends that you upgrade to the new and safer Internet Explorer
 8http://in.rd.yahoo.com/tagline_ie8_1/*http://downloads.yahoo.com/in/internetexplorer/

 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

[wtr-general] Re: How to click the link in dynamically generated ajax content?

2009-08-14 Thread Raveendran P
Hi Durgesh,


Cool !

Let me know which code solved your issue ?

On Fri, Aug 14, 2009 at 4:06 PM, Durgesh Nadkarni fordurg...@yahoo.co.inwrote:

 Hi Raveendran,

 It works.. Thanks a lot...

 Regards
 Durgesh.

 --- On *Thu, 13/8/09, Raveendran P jazzezr...@gmail.com* wrote:


 From: Raveendran P jazzezr...@gmail.com
 Subject: [wtr-general] Re: How to click the link in dynamically generated
 ajax content?
 To: watir-general@googlegroups.com
 Date: Thursday, 13 August, 2009, 8:40 PM


 Hi Durgesh,

 Are asking this code?

 check=browser.link(:id,PageLinkDisabled).enabled?

 if check == true
 It is Enabled. Continue your work
 else
 It is Disabled
 end

 If yes then just use it otherwise :)

 Thanks

 On Thu, Aug 13, 2009 at 6:19 PM, Durgesh Nadkarni 
 fordurg...@yahoo.co.inhttp://mc/compose?to=fordurg...@yahoo.co.in
  wrote:

 Hi Raveendran,

 I want to make sure that Previous link is disabled. So I need to use the
 second method given by you. But do I need to pass the parameter to it as
 shown below?

 assert(browser.link(:id,PageLinkDisabled).exists?)

 How can use the given method?

 Thanks  Regards
 Durgesh.



 --- On *Thu, 13/8/09, Raveendran P 
 jazzezr...@gmail.comhttp://mc/compose?to=jazzezr...@gmail.com
 * wrote:


 From: Raveendran P 
 jazzezr...@gmail.comhttp://mc/compose?to=jazzezr...@gmail.com
 
 Subject: [wtr-general] Re: How to click the link in dynamically generated
 ajax content?
 To: 
 watir-general@googlegroups.comhttp://mc/compose?to=watir-gene...@googlegroups.com
 Date: Thursday, 13 August, 2009, 10:06 AM


 Hi Durgesh,

 Way 1 -- use sleep commands until the link was enabled.

 way 2 -- Still the field disabled then Watir gem code is here ...

 # File lib/watir/element.rb, line 283

 def enabled?
   assert_exists
   return ! disabled



 end



 Thanks

 On Tue, Aug 11, 2009 at 6:12 PM, Durgesh Nadkarni 
 fordurg...@yahoo.co.inhttp://mc/compose?to=fordurg...@yahoo.co.in
  wrote:

 Hi Reveendran,

 Thanks a lot for the given code. But the code which I am getting is as
 follows:

 div class=prev_arrow_img
 a count=0 class=PageLinkDisable 
 href=/RSCpubs.ePlatform.Web/en/Search/JournalResultPrevious/a



 /div

 Currently the 'Previous' link is disabled. But when I use verify statement 
 it does not recognized that link is disabled.

 Thanks  Regards
 Durgesh.

 --- On *Mon, 10/8/09, Raveendran P 
 jazzezr...@gmail.comhttp://mc/compose?to=jazzezr...@gmail.com
 * wrote:


 From: Raveendran P 
 jazzezr...@gmail.comhttp://mc/compose?to=jazzezr...@gmail..com
 
 Subject: [wtr-general] Re: How to click the link in dynamically generated
 ajax content?
 To: 
 watir-general@googlegroups.comhttp://mc/compose?to=watir-gene...@googlegroups.com
 Date: Monday, 10 August, 2009, 9:51 AM

 Hi Durgesh,

 See the below example.
 1. Uploading some imsges
 2. In Runtime -- I will get some code in BOLDED Div's. I collected the
 info from that div and checked it.

 Still you are not clear then just copy and paste the Source code for that
 page. I will try more.

 CODE:


 def check_status
 sleep(2)

 * @status=$ie.div(:class,display-states).html
 @blo...@status.scan(%r{style=DISPLAY:
 block(.*?)/div}im).flatten.to_s *
 @su...@block.include?(Success)
 @que...@block.include?(Queued)
 @uploadi...@block.include?(Uploading)
 @canc...@block.include?(Cancelled)
 @err...@block.include?(Error)

 if @succ == true
 return
 end

 if @queue == true
 sleep(20)
 check_status
 end

 if @uploading== true
 sleep(10)
 check_status
 end


 if @cancel== true
 $ie.link(:text,Retry)
 sleep(20)
 check_status
 end

 if @error== true
 $ie.link(:text,Retry)
 sleep(20)
 check_status
 end
 end

 end

 Thanks


 On Fri, Aug 7, 2009 at 6:13 PM, Durgesh Nadkarni 
 fordurg...@yahoo.co.inhttp://mc/compose?to=fordurg...@yahoo.co.in
  wrote:

 Hi Raveendran,

 That HTML code is getting during runtime. Thats why we cannot paste the
 html code for that link.

 Is there any other method through which we can recognized that link?

 Thanks  Regards
 Durgesh.

 --- On *Fri, 7/8/09, Raveendran P 
 raveend...@railsfactory.orghttp://mc/compose?to=raveend...@railsfactory.org
 * wrote:


 From: Raveendran P 
 raveend...@railsfactory.orghttp://mc/compose?to=raveend...@railsfactory.org
 
 Subject: [wtr-general] Re: How to click the link in dynamically
 generated ajax content?
 To: 
 watir-general@googlegroups.comhttp://mc/compose?to=watir-gene...@googlegroups.com
 Date: Friday, 7 August, 2009, 2:58 PM

 Hi Durgesh,

 is it possible to paste the html code for that link here ?

 Thanks,
 Raveendran
 http://raveendran.wordpress.com

 On Fri, Aug 7, 2009 at 1:44 PM, Durgesh 
 durgeshnadka...@gmail.comhttp://mc/compose?to=durgeshnadka...@gmail.com
  wrote:


 Hi,

 I want to click one link which is coming from dynamically generated
 ajax contents.The source could not be found when I do view source.

 Thanks  Regards
 Durgesh




 --
 Regards,
 P.Raveendran



 --
 See the Web's breaking stories, chosen by people like

[wtr-general] Re: How to click the link in dynamically generated ajax content?

2009-08-14 Thread Raveendran P
Fine.

On Fri, Aug 14, 2009 at 5:48 PM, Durgesh Nadkarni fordurg...@yahoo.co.inwrote:

 Hi,

 The same code which you have given in the previous mail.
 check=browser.link(:id,PageLinkDisabled).enabled?

 if check == true
 It is Enabled. Continue your work
 else
 It is Disabled
 end

 Regards
 Durgesh.

 --- On *Fri, 14/8/09, Raveendran P jazzezr...@gmail.com* wrote:


 From: Raveendran P jazzezr...@gmail.com
 Subject: [wtr-general] Re: How to click the link in dynamically generated
 ajax content?
 To: watir-general@googlegroups.com
 Date: Friday, 14 August, 2009, 4:08 PM


 Hi Durgesh,


 Cool !

 Let me know which code solved your issue ?

 On Fri, Aug 14, 2009 at 4:06 PM, Durgesh Nadkarni 
 fordurg...@yahoo.co.inhttp://mc/compose?to=fordurg...@yahoo.co.in
  wrote:

 Hi Raveendran,

 It works.. Thanks a lot...

 Regards
 Durgesh.

 --- On *Thu, 13/8/09, Raveendran P 
 jazzezr...@gmail.comhttp://mc/compose?to=jazzezr...@gmail.com
 * wrote:


 From: Raveendran P 
 jazzezr...@gmail.comhttp://mc/compose?to=jazzezr...@gmail.com
 
 Subject: [wtr-general] Re: How to click the link in dynamically generated
 ajax content?
 To: 
 watir-general@googlegroups.comhttp://mc/compose?to=watir-gene...@googlegroups.com
 Date: Thursday, 13 August, 2009, 8:40 PM


 Hi Durgesh,

 Are asking this code?

 check=browser.link(:id,PageLinkDisabled).enabled?

 if check == true
 It is Enabled. Continue your work
 else
 It is Disabled
 end

 If yes then just use it otherwise :)

 Thanks

 On Thu, Aug 13, 2009 at 6:19 PM, Durgesh Nadkarni 
 fordurg...@yahoo.co.inhttp://mc/compose?to=fordurg...@yahoo.co.in
  wrote:

 Hi Raveendran,

 I want to make sure that Previous link is disabled. So I need to use
 the second method given by you. But do I need to pass the parameter to it as
 shown below?

 assert(browser.link(:id,PageLinkDisabled).exists?)

 How can use the given method?

 Thanks  Regards
 Durgesh.



 --- On *Thu, 13/8/09, Raveendran P 
 jazzezr...@gmail.comhttp://mc/compose?to=jazzezr...@gmail.com
 * wrote:


 From: Raveendran P 
 jazzezr...@gmail.comhttp://mc/compose?to=jazzezr...@gmail.com
 
 Subject: [wtr-general] Re: How to click the link in dynamically generated
 ajax content?
 To: 
 watir-general@googlegroups.comhttp://mc/compose?to=watir-gene...@googlegroups.com
 Date: Thursday, 13 August, 2009, 10:06 AM


 Hi Durgesh,

 Way 1 -- use sleep commands until the link was enabled.

 way 2 -- Still the field disabled then Watir gem code is here ...

 # File lib/watir/element.rb, line 283

 def enabled?
   assert_exists
   return ! disabled




 end



 Thanks

 On Tue, Aug 11, 2009 at 6:12 PM, Durgesh Nadkarni 
 fordurg...@yahoo.co.in http://mc/compose?to=fordurg...@yahoo.co.inwrote:

 Hi Reveendran,

 Thanks a lot for the given code. But the code which I am getting is as
 follows:

 div class=prev_arrow_img
 a count=0 class=PageLinkDisable 
 href=/RSCpubs.ePlatform.Web/en/Search/JournalResultPrevious/a




 /div

 Currently the 'Previous' link is disabled. But when I use verify statement 
 it does not recognized that link is disabled.

 Thanks  Regards
 Durgesh.

 --- On *Mon, 10/8/09, Raveendran P 
 jazzezr...@gmail.comhttp://mc/compose?to=jazzezr...@gmail.com
 * wrote:


 From: Raveendran P 
 jazzezr...@gmail.comhttp://mc/compose?to=jazzezr...@gmail..com
 
 Subject: [wtr-general] Re: How to click the link in dynamically
 generated ajax content?
 To: 
 watir-general@googlegroups.comhttp://mc/compose?to=watir-gene...@googlegroups.com
 Date: Monday, 10 August, 2009, 9:51 AM

 Hi Durgesh,

 See the below example.
 1. Uploading some imsges
 2. In Runtime -- I will get some code in BOLDED Div's. I collected the
 info from that div and checked it.

 Still you are not clear then just copy and paste the Source code for
 that page. I will try more.

 CODE:


 def check_status
 sleep(2)

 * @status=$ie.div(:class,display-states).html
 @blo...@status.scan(%r{style=DISPLAY:
 block(.*?)/div}im).flatten.to_s *
 @su...@block.include?(Success)
 @que...@block.include?(Queued)
 @uploadi...@block.include?(Uploading)
 @canc...@block.include?(Cancelled)
 @err...@block.include?(Error)

 if @succ == true
 return
 end

 if @queue == true
 sleep(20)
 check_status
 end

 if @uploading== true
 sleep(10)
 check_status
 end


 if @cancel== true
 $ie.link(:text,Retry)
 sleep(20)
 check_status
 end

 if @error== true
 $ie.link(:text,Retry)
 sleep(20)
 check_status
 end
 end

 end

 Thanks


 On Fri, Aug 7, 2009 at 6:13 PM, Durgesh Nadkarni 
 fordurg...@yahoo.co.in http://mc/compose?to=fordurg...@yahoo.co.inwrote:

 Hi Raveendran,

 That HTML code is getting during runtime. Thats why we cannot paste the
 html code for that link.

 Is there any other method through which we can recognized that link?

 Thanks  Regards
 Durgesh.

 --- On *Fri, 7/8/09, Raveendran P 
 raveend...@railsfactory.orghttp://mc/compose?to=raveend...@railsfactory.org
 * wrote:


 From: Raveendran P 
 raveend...@railsfactory.orghttp://mc/compose?to=raveend

[wtr-general] Re: How to delete cookies in Firefox through firewatir script?

2009-08-17 Thread Raveendran P
Hi Mita,

Hope this code helps you..

require 'fileutils'
dir= C:\\Documents and Settings\\raveendran\\Cookies
FileUtils.rm_rf dir


Thanks

On Mon, Aug 17, 2009 at 4:04 PM, Maumita maumita.majum...@gmail.com wrote:


 Hi,

 How to delete cookies in Firefox through firewatir script?

 Thanks
 Maumita
 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: How do I get a URL parameter value

2009-08-18 Thread Raveendran P
Hi,

Are tried like this ?

@frame_src=$ie.frame(:index, 1).html




On Tue, Aug 18, 2009 at 11:39 AM, Marlon marlonmoja...@gmail.com wrote:


 Im getting an error retrieving src value which is https://url.com/
 text.asp?p=xyzq=abc https://url.com/%0Atext.asp?p=xyzq=abc using
 attribute_value()

 code: $ie.frame(:index, 1).attribute_value(src)

 Error:
 NoMethodError: undefined method `attribute_value' for #Watir::Frame:
 0xfdbec50


 thanks





 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: doubt regarding puts() and gets() function

2009-08-18 Thread Raveendran P
Hi,

Additionally This is the forum for Only Watir Users. So please post your
next ruby related question to Ruby-forums(http://ruby-forum.com).



On Tue, Aug 18, 2009 at 3:10 PM, Raveendran P jazzezr...@gmail.com wrote:

 Hi,

 1. Go to command prompt

 2. c:\WHERETHEcODEFolDER ruby sunny.rb

 3. try here and let me know

 Thanks


 On Tue, Aug 18, 2009 at 2:59 PM, shailesh shaileshbt...@gmail.com wrote:


 have a look at the code :

 puts(He)
 puts(h)
 i=gets()
 puts(i)
  a very simple code but the output was :

 ruby sunny.rb
 hi
 He
 h
 hi
 Exit code: 0
  Here 'hi' was the input I gave. It always asks the user input
 before executing the output

 My question is how can I use puts() to print first and then take user
 inputs ?
 



 --
 Regards,
 P.Raveendran
 http://raveendran.wordpress.com




-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: small problem regarding modules

2009-08-18 Thread Raveendran P
*Hi,


puts(hi) -- *

 hi -- returns He but you mentioned like puts(hi).So it returns the
nil for final puts which was added by you.


Thanks


On Tue, Aug 18, 2009 at 3:11 PM, shailesh shaileshbt...@gmail.com wrote:


 This is my module in a file named sunny.rb:

 Sunny.rb:

 module Sunny
 def hi
 puts(He)
  end
 end

 and this is file sunny1.rb where I call sunny.rb :

 Sunny1.rb:

 require 'watir'
 require'sunny.rb'
 include Sunny
 hi
 puts(hi)

 when i execute this, this is what I get:

 ruby sunny1.rb
 He
 He
 nil
 Exit code: 0


 My question is what is this nil for ? It might be easy or a small
 thing but I am not able to get the answer of this question. Thanks in
 advance for the answer.


 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: retrieving data from Child IE window to Parent IE Window

2009-08-19 Thread Raveendran P
Hi,

Please look on this URL -- http://wtr.rubyforge.org/ and try yourself

Thanks

On Thu, Aug 20, 2009 at 10:28 AM, blranilmenon blranilme...@gmail.comwrote:


 Hi All,

 Below the test case i am currently trying to automate using Watir, if
 some one in this group could help me out.

 Test case is:
 1) Open url(www.sample.html) in IE.
 2) Click Find button. New IE (Child) window open.
 3) Select JJ User from secondary window.
 4) Selected user name is displayed in parent IE window.


 Thanks,
 Anil
 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: Getting error as - gem_original_require': no such file to load -- Xls (LoadError)

2009-08-20 Thread Raveendran P
Hi Durgesh,

Try with this change

xlFile = XLS.new(Dir.pwd + '../Data.xls')

Thanks


On Thu, Aug 20, 2009 at 4:05 PM, KK krishna.sara...@gmail.com wrote:


 This might be because the Xls.rb is not accessible to this script. Try
 keeping the file in the same directory as your script is residing or
 provide the absolute path for the Xls.rb in the require statement.

 Thanks  Regards,
 KK

 On Jul 10, 5:24 pm, Durgesh Nadkarni durgeshnadka...@gmail.com
 wrote:
  Hi,
 
  I have installed the ruby 1.8.6 and WATIR 1.6.2.
 
  I have created a script which fetches the data from excel sheet  perform
  the operations.
 
  Then I have kept the following code in a common file inside 'Library'
  directory which gets data from excel sheet.
 
  
  require 'Xls' # Xls.rb is in the same directory(Library)
  # This function is used to fetch the data from excelsheet.
  def getdata()
xlFile = XLS.new(Dir.pwd + '../Test-Data/Data.xls') #grab the data file
mydata = xlFile.getRowRecords('Test Data','Sheet1')  #pull data records
  from excel
return mydata
xlFile.close
  end
  
 
  All the functions related to excel operations are kept Xls.rb file which
 is
  in same directory.Then I am calling the function getdata() from another
 file
  from parent directory as below.
 
  
  require 'test/unit'
  require 'Library/common'
  require 'watir'
  Watir.options_file = 'E:/Data316/RSC-ePlatform/Automation/options.yml'
 
  class Gmail  Test::Unit::TestCase
   def test_Gmail_Working
 
# Calling getdata function
@myData = getdata()
   end
  end
  
 
  But when I ran the above script I got following error.
 
  
  c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
  `gem_original_require': no
 
  such file to load -- Xls (LoadError)
  from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
  `require'
  from ./Library/common.rb:5
  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 ESR6.rb:7
  ---
 
  Please help me on the above issue.
 
  Thanks  Regards
  Durgesh.
 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: delete cookies

2009-08-21 Thread Raveendran P
Hi,

The below code executes without any error. But Nothing happens in

C:\Documents and Settings\raveendran\Local Settings\Temporary Internet Files


Awaiting your reply



On Fri, May 16, 2008 at 6:19 PM, Moochie dduph...@redbrickhealth.comwrote:


 # Purpose:  To delete all cookies on the PC
 # Date: Feb 07, 2008

 #create Class Called Dir
 class Dir
#Require 'find.rb'
require 'find'
#creates Path Variable
path = C:\\Documents and Settings\\+ENV['USERNAME']+\\Local
 Settings\\Temporary Internet Files

def Dir.visit(dir = '.', files_first = false, block)
if files_first
paths = []
Find.find(dir) { |path| paths  path }
paths.reverse_each {|path| yield path}
else
Find.find(dir, block)
end
end
# -simulates unix rm -rf command
def Dir.rm_rf(dir)

Dir.visit(dir, true) do |path|
if FileTest.directory?(path)
begin
Dir.unlink(path)
rescue # -Security Exception for Content.IE
end
else
#puts removing #{ path }
begin
File.unlink(path)
rescue = e #-Security exception index.dat etc.
#puts Exception  + e
end
end
end
end
  end

 class CookieKiller
def self.kill()
  dir =CookieKiller.cookie_dir()
  Dir.rm_rf( dir)
end
def self.cookie_dir()
  path = C:\\Documents and Settings\\+ENV['USERNAME']+\\Local
 Settings\\Temporary Internet Files
  return path
end

  end

 #Delete Cookies
 CookieKiller.kill()




 On May 16, 6:25 am, aidy lewis aidy.le...@googlemail.com wrote:
  Hi,
 
  Does anyone know how to delete all cookies in Ruby?
 
  --
  Aidywww.agiletester.co.uk
 



-- 
Regards,
P.Raveendran

--~--~-~--~~~---~--~~
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: How to perform a right click

2009-08-31 Thread Raveendran P
Hi,

Try this --
http://raveendran.wordpress.com/2009/07/24/mouse-clicks-in-watirruby/



2009/9/1 Eason nbkhic...@gmail.com

  Hi all,
 who could let me know how to use code to do right click?
 I can not find such a method in the rdoc.

 Please help, thank you!
  --
  Eason
 2009-09-01

 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: How to perform a right click

2009-08-31 Thread Raveendran P
Hi Bill,

 Exactly, the source from wiki only with little modification of
example. :)

Thanks

On Tue, Sep 1, 2009 at 11:18 AM, Bill Agee billa...@gmail.com wrote:

 Or you can find the same info on the wiki, which is (I suspect) where the
 blog post in the previous mail came from. :)

 http://wiki.openqa.org/display/WTR/Right+Click+an+Element



 On Mon, Aug 31, 2009 at 10:43 PM, Raveendran P jazzezr...@gmail.comwrote:

 Hi,

 Try this --
 http://raveendran.wordpress.com/2009/07/24/mouse-clicks-in-watirruby/



 2009/9/1 Eason nbkhic...@gmail.com

  Hi all,
 who could let me know how to use code to do right click?
 I can not find such a method in the rdoc.

 Please help, thank you!
  --
  Eason
 2009-09-01





 --
 Regards,
 P.Raveendran
 http://raveendran.wordpress.com





 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: How to read an xml file using watir scripts

2009-09-09 Thread Raveendran P
Hi,

Hpricot -- This article will help you
http://markmail.org/message/x56irjeq2bv37z23

Thanks

On Wed, Sep 9, 2009 at 12:24 PM, msazeez28july sabdulkha...@gmail.comwrote:


 Hi,
  We have an .NET application for which the UI labels can be
 configured/changed using an xml file provided inside code. There are
 xml tags inside the file as below
 data name=CompanyText xml:space=preserve
valueCompany/value
  /data
 If i change the above value tag from Company to FIRM, then the
 application UI would change the label from company to FIRM. There are
 lot of other tags like DepartmentText, PasswordTextetc exist in
 that xml file
 This needs to be automated like watir script should read this file to
 the specific xml tag and change its value tag to desired new value and
 verify in the UI for the same.

 I need to know, how do i read an xml file using watir scripts?
 Do we have any class in watir ?

 Could you please help me on this
 Thanks in advance.

 Regards
 Syed
 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: How do i read a .txt file using watir script

2009-09-14 Thread Raveendran P
Hi,

If you interested in your requirement then try this  --
http://www.yaml.org/YAML_for_ruby.html

On Mon, Sep 14, 2009 at 4:06 PM, msazeez28july sabdulkha...@gmail.comwrote:


 Hi,
  We have watir scripts which requires url, username, password and
 path (location of the datatables).
  These parameters are changing depends upon the server where
 application is deployed.
  I would like to put these information inside a .txt file like
 belo
  url = http://198.44.23.11/DemoApplication.WebUI
  username = admin
  password = adm...@#
  path = D:\Watir\WatirScripts

   Now i need to access the above .txt file using watir scripts
 like open file, read line by line and store each word in a array then
   use array elements to get exact values for each parameters and
 store it on respective variables to use inside scripts.

  Could you please let me know, whether we can able to open a file
 and read line by line using watir scripts. Does watir has class
 or
  library to support file open in read/write/append modes.

  Please let me know. Thanks in advance.

 Regards
 Syed
 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: Right Click and Element Script

2009-09-29 Thread Raveendran P
Hi pallavi,

Pls add and try again

May be try this all possibilities

require 'rubygems'
require 'watir'
require 'pp'
require 'win32ole'
require win32ole_pp
require 'watir/WindowHelper'


Awaiting your reply...

Thanks

On Tue, Sep 29, 2009 at 3:17 PM, Pallavi Sharma write2pall...@gmail.comwrote:

 Hi All

 I am trying to work on the script:

 require 'watir'

 module Watir
   class Element
 def top_edge
   assert_exists
   assert_enabled
   ole_object.getBoundingClientRect.top.to_i
 end

 def top_edge_absolute
   top_edge + container.document.parentWindow.screenTop.to_i
 end

 def left_edge
   assert_exists
   assert_enabled
   ole_object.getBoundingClientRect.left.to_i
 end

 def left_edge_absolute
   left_edge + container.document.parentWindow.screenLeft.to_i
 end

 def right_click
   x = left_edge_absolute
   y = top_edge_absolute
   #puts x: #{x}, y: #{y}
   WindowsInput.move_mouse(x, y)
   WindowsInput.right_click
 end
   end
 end

 module WindowsInput
   # Windows API functions
  SetCursorPos = Win32API.new('user32','SetCursorPos', 'II', 'I')
   SendInput = Win32API.new('user32','SendInput', 'IPI', 'I')

   # Windows API constants
   INPUT_MOUSE = 0
   MOUSEEVENTF_LEFTDOWN = 0x0002
   MOUSEEVENTF_LEFTUP = 0x0004
   MOUSEEVENTF_RIGHTDOWN = 0x0008
   MOUSEEVENTF_RIGHTUP = 0x0010

   module_function

   def send_input(inputs)
 n = inputs.size
 ptr = inputs.collect {|i| i.to_s}.join # flatten arrays into single
 string
 SendInput.call(n, ptr, inputs[0].size)
   end

   def create_mouse_input(mouse_flag)
 mi = Array.new(7, 0)
 mi[0] = INPUT_MOUSE
 mi[4] = mouse_flag
 mi.pack('LLL') # Pack array into a binary sequence usable to
 SendInput
   end

   def move_mouse(x, y)
 SetCursorPos.call(x, y)
   end

   def right_click
 rightdown = create_mouse_input(MOUSEEVENTF_RIGHTDOWN)
 rightup = create_mouse_input(MOUSEEVENTF_RIGHTUP)
 send_input( [rightdown, rightup] )
   end
 end

 # Open google index page, and send a right click to the logo image
 ie = Watir::IE.new
 ie.goto('www.google.com')
 image = ie.image(:index, 1)
 image.right_click
 # Then, bring up the properties menu (works with IE6, at least)
 ie.send_keys({UP}{ENTER})


 But it keeps giving me the error:

 ruby TrryMe.rb
 TrryMe.rb:37: uninitialized constant WindowsInput::Win32API (NameError)
 Exit code: 1



 What is that i am doing wrong??

 I am using watir 1.6.2


 Please help.

 Thanks

 Pallavi.

 



-- 
Regards,
P.Raveendran

--~--~-~--~~~---~--~~
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: Right Click and Element Script

2009-09-29 Thread Raveendran P
Hi pallavi,

Yes. Def it will work..

If not then pls paste ur html code here.

Thanks
P.Raveendran

On Tue, Sep 29, 2009 at 4:10 PM, Pallavi Sharma write2pall...@gmail.comwrote:

 Hey Ravee

 Thanks a ton, maybe some one can update the stuff there at tha link, it
 will surely help.

 by the way: win32ole_pp throws an error so i removed it.

 One more thing i will be using this on a div containg table, and its table
 cell will it work??

 Thanks

 Pallavi


 On Tue, Sep 29, 2009 at 3:58 PM, Raveendran P raveend...@railsfactory.org
  wrote:

 Hi pallavi,

 Pls add and try again

 May be try this all possibilities

 require 'rubygems'
 require 'watir'
 require 'pp'
 require 'win32ole'
 require win32ole_pp
 require 'watir/WindowHelper'


 Awaiting your reply...

 Thanks


 On Tue, Sep 29, 2009 at 3:17 PM, Pallavi Sharma 
 write2pall...@gmail.comwrote:

 Hi All

 I am trying to work on the script:

 require 'watir'

 module Watir
   class Element
 def top_edge
   assert_exists
   assert_enabled
   ole_object.getBoundingClientRect.top.to_i
 end

 def top_edge_absolute
   top_edge + container.document.parentWindow.screenTop.to_i
 end

 def left_edge
   assert_exists
   assert_enabled
   ole_object.getBoundingClientRect.left.to_i
 end

 def left_edge_absolute
   left_edge + container.document.parentWindow.screenLeft.to_i
 end

 def right_click
   x = left_edge_absolute
   y = top_edge_absolute
   #puts x: #{x}, y: #{y}
   WindowsInput.move_mouse(x, y)
   WindowsInput.right_click
 end
   end
 end

 module WindowsInput
   # Windows API functions
  SetCursorPos = Win32API.new('user32','SetCursorPos', 'II', 'I')
   SendInput = Win32API.new('user32','SendInput', 'IPI', 'I')

   # Windows API constants
   INPUT_MOUSE = 0
   MOUSEEVENTF_LEFTDOWN = 0x0002
   MOUSEEVENTF_LEFTUP = 0x0004
   MOUSEEVENTF_RIGHTDOWN = 0x0008
   MOUSEEVENTF_RIGHTUP = 0x0010

   module_function

   def send_input(inputs)
 n = inputs.size
 ptr = inputs.collect {|i| i.to_s}.join # flatten arrays into single
 string
 SendInput.call(n, ptr, inputs[0].size)
   end

   def create_mouse_input(mouse_flag)
 mi = Array.new(7, 0)
 mi[0] = INPUT_MOUSE
 mi[4] = mouse_flag
 mi.pack('LLL') # Pack array into a binary sequence usable to
 SendInput
   end

   def move_mouse(x, y)
 SetCursorPos.call(x, y)
   end

   def right_click
 rightdown = create_mouse_input(MOUSEEVENTF_RIGHTDOWN)
 rightup = create_mouse_input(MOUSEEVENTF_RIGHTUP)
 send_input( [rightdown, rightup] )
   end
 end

 # Open google index page, and send a right click to the logo image
 ie = Watir::IE.new
 ie.goto('www.google.com')
 image = ie.image(:index, 1)
 image.right_click
 # Then, bring up the properties menu (works with IE6, at least)
 ie.send_keys({UP}{ENTER})


 But it keeps giving me the error:

 ruby TrryMe.rb
 TrryMe.rb:37: uninitialized constant WindowsInput::Win32API (NameError)
 Exit code: 1



 What is that i am doing wrong??

 I am using watir 1.6.2


 Please help.

 Thanks

 Pallavi.





 --
 Regards,
 P.Raveendran




 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: Right Click and Element Script

2009-09-29 Thread Raveendran P
Hi Pallavi,

May be the focus missing here. So please adjust the changes here and try it.
(its not a exact solution but it may be help some times)


 # Windows API constants
  INPUT_MOUSE = 0
  MOUSEEVENTF_LEFTDOWN = 0x0002
  MOUSEEVENTF_LEFTUP = 0x0004
  MOUSEEVENTF_RIGHTDOWN = 0x0008
  MOUSEEVENTF_RIGHTUP = 0x0010


This code is available under Watir module (which was you pasted in first
thread.)


Thanks.

On Tue, Sep 29, 2009 at 4:55 PM, Pallavi Sharma write2pall...@gmail.comwrote:

 Hey Ravee

 Its not working :(

 I have a scenario in which :

 1. A link opens a Div tag on which a image open another div tag which
 contains a table.
 2. Now, i have to click on a table cell to select my date
 3. For the same i am using this function.
 4. It open the calendar div but doesn't click on the table cell present
 inside the calendar div.

 The coordinates it returns for the cell are x=0,y=112 [doesn't work]

 The icon which opens the calendar, its coordinates are: x=503,y=499  [this
 one works]

 Is my page_container wrong or whats the issue?


 The screen shot is attached and i am trying to save the page but not able
 to. The code snippets are attached.

 Please help!!

 Thanks

 Pallavi


 On Tue, Sep 29, 2009 at 4:43 PM, Raveendran P jazzezr...@gmail.comwrote:

 Hi pallavi,

 Yes. Def it will work..

 If not then pls paste ur html code here.

 Thanks
 P.Raveendran


 On Tue, Sep 29, 2009 at 4:10 PM, Pallavi Sharma 
 write2pall...@gmail.comwrote:

 Hey Ravee

 Thanks a ton, maybe some one can update the stuff there at tha link, it
 will surely help.

 by the way: win32ole_pp throws an error so i removed it.

 One more thing i will be using this on a div containg table, and its
 table cell will it work??

 Thanks

 Pallavi


 On Tue, Sep 29, 2009 at 3:58 PM, Raveendran P 
 raveend...@railsfactory.org wrote:

 Hi pallavi,

 Pls add and try again

 May be try this all possibilities

 require 'rubygems'
 require 'watir'
 require 'pp'
 require 'win32ole'
 require win32ole_pp
 require 'watir/WindowHelper'


 Awaiting your reply...

 Thanks


 On Tue, Sep 29, 2009 at 3:17 PM, Pallavi Sharma 
 write2pall...@gmail.com wrote:

 Hi All

 I am trying to work on the script:

 require 'watir'

 module Watir
   class Element
 def top_edge
   assert_exists
   assert_enabled
   ole_object.getBoundingClientRect.top.to_i
 end

 def top_edge_absolute
   top_edge + container.document.parentWindow.screenTop.to_i
 end

 def left_edge
   assert_exists
   assert_enabled
   ole_object.getBoundingClientRect.left.to_i
 end

 def left_edge_absolute
   left_edge + container.document.parentWindow.screenLeft.to_i
 end

 def right_click
   x = left_edge_absolute
   y = top_edge_absolute
   #puts x: #{x}, y: #{y}
   WindowsInput.move_mouse(x, y)
   WindowsInput.right_click
 end
   end
 end

 module WindowsInput
   # Windows API functions
  SetCursorPos = Win32API.new('user32','SetCursorPos', 'II', 'I')
   SendInput = Win32API.new('user32','SendInput', 'IPI', 'I')

   # Windows API constants
   INPUT_MOUSE = 0
   MOUSEEVENTF_LEFTDOWN = 0x0002
   MOUSEEVENTF_LEFTUP = 0x0004
   MOUSEEVENTF_RIGHTDOWN = 0x0008
   MOUSEEVENTF_RIGHTUP = 0x0010

   module_function

   def send_input(inputs)
 n = inputs.size
 ptr = inputs.collect {|i| i.to_s}.join # flatten arrays into single
 string
 SendInput.call(n, ptr, inputs[0].size)
   end

   def create_mouse_input(mouse_flag)
 mi = Array.new(7, 0)
 mi[0] = INPUT_MOUSE
 mi[4] = mouse_flag
 mi.pack('LLL') # Pack array into a binary sequence usable to
 SendInput
   end

   def move_mouse(x, y)
 SetCursorPos.call(x, y)
   end

   def right_click
 rightdown = create_mouse_input(MOUSEEVENTF_RIGHTDOWN)
 rightup = create_mouse_input(MOUSEEVENTF_RIGHTUP)
 send_input( [rightdown, rightup] )
   end
 end

 # Open google index page, and send a right click to the logo image
 ie = Watir::IE.new
 ie.goto('www.google.com')
 image = ie.image(:index, 1)
 image.right_click
 # Then, bring up the properties menu (works with IE6, at least)
 ie.send_keys({UP}{ENTER})


 But it keeps giving me the error:

 ruby TrryMe.rb
 TrryMe.rb:37: uninitialized constant WindowsInput::Win32API (NameError)
 Exit code: 1



 What is that i am doing wrong??

 I am using watir 1.6.2


 Please help.

 Thanks

 Pallavi.





 --
 Regards,
 P.Raveendran








 --
 Regards,
 P.Raveendran
 http://raveendran.wordpress.com






 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

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

[wtr-general] Re: Load Testing with WATIR configuration settings - USERS/ Concurrency/ Rampup

2009-09-29 Thread Raveendran P
Hi,

I hope you will get the sample code from here --
http://wiki.openqa.org/display/WTR/Re-Usable+Load+Testing+Example

Do you need to run this sample code in your local machine ? it means do u
need help to install the dependencies ?

Thanks

On Tue, Sep 29, 2009 at 7:23 PM, venky greet.ven...@gmail.com wrote:


 Hi,
 Could anybody help me on how/ where to configure the users/ load/
 other settings in WATIR for load/stress/performance testing.

 Thanks,
 venky
 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: Load Testing with WATIR configuration settings - USERS/ Concurrency/ Rampup

2009-09-30 Thread Raveendran P
Hi Venkat,

Yes. It seems you didn't install watir in your machine.

1.
in command prompt gem install watir

After installed watir just try once again

Thanks



On Wed, Sep 30, 2009 at 5:18 PM, venkat greet.ven...@gmail.com wrote:

 Thanks for your response Raveendran,

 I have executed the sample script as the following but got the error like
 ...

 C:\RubyScripts/test.rb:15:in 'require' : no such file to load -- watir
 (LoadError)

  from C:/RubyScripts/test.rb:15

 test.rb file contains the following sample code.


 require 'rubgems'
 require 'watir'
 require 'watir/contrib/ie-new-process'
 ie = Watir::IE.new_process
 ie.goto('google.com')

 Could you please help me out how to resolve and run the sample scripts.


 Thanks,
 Venky
 On Wed, Sep 30, 2009 at 10:03 AM, Raveendran P jazzezr...@gmail.comwrote:

 Hi,

 I hope you will get the sample code from here --
 http://wiki.openqa.org/display/WTR/Re-Usable+Load+Testing+Example

 Do you need to run this sample code in your local machine ? it means do u
 need help to install the dependencies ?

 Thanks


 On Tue, Sep 29, 2009 at 7:23 PM, venky greet.ven...@gmail.com wrote:


 Hi,
 Could anybody help me on how/ where to configure the users/ load/
 other settings in WATIR for load/stress/performance testing.

 Thanks,
 venky




 --
 Regards,
 P.Raveendran
 http://raveendran.wordpress.com




 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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] File Field Help

2009-10-03 Thread Raveendran P
Hi All,

Any alternate method for this code

$ie.file_field( :name, document ).set( c:\\Watir Testware\\Data\\vb.txt
)


I need alternate for this code ...

Reason :

After did the above line the Upload button is not enabled automatically.
But it happens when i select files manually



Thanks in Advance

-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: File Field Help

2009-10-04 Thread Raveendran P
Hi Bill,

That code sets properly. Its working exactly . But i need alternate way to
do this.

Because The upload button is not enabled automatically after set the p[ath
via like this.


For more details

1. Login youtube.
2. Uninstall Fal;sh player in your machine
3. Goto upload video page.
4. Set the path like this

$ie.file_field( :name, document ).set( c:\\Watir Testware\\Data\\vb.txt
)

5. Still the upload button disabled.


Thats why i am asking the alternate way to do this.

Awaiting your reply

Thanks

On Sun, Oct 4, 2009 at 2:55 AM, Bill Agee billa...@gmail.com wrote:

 What browser version are you using?  Also, is the path to the file being
 set properly in the dialog?

 Thanks
 Bill



 On Sat, Oct 3, 2009 at 4:28 AM, Raveendran P jazzezr...@gmail.com wrote:

 Hi All,

 Any alternate method for this code

 $ie.file_field( :name, document ).set( c:\\Watir
 Testware\\Data\\vb.txt )


 I need alternate for this code ...

 Reason :

 After did the above line the Upload button is not enabled
 automatically. But it happens when i select files manually



 Thanks in Advance

 --
 Regards,
 P.Raveendran
 http://raveendran.wordpress.com





 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: File Field Help

2009-10-04 Thread Raveendran P
Hi Bill,

For more details,


The same code working in WATIR:


$ie.file_field(:name, field_uploadfile).set($video_files[0])

$ie.span(:text, 'Upload Video').click


Here i can able to click the Upload Video span . Because it is enabled after
set the file_field path.

But the same code not working in FireWatir for Firefox browser

It means, The Upload Video span not enabled automatically after set the
path like

  $ff.file_field(:name, field_uploadfile).set($video_files[0])


Any more details need ?





On Sun, Oct 4, 2009 at 8:54 PM, Raveendran P jazzezr...@gmail.com wrote:

 Hi Bill,

 That code sets properly. Its working exactly . But i need alternate way to
 do this.

 Because The upload button is not enabled automatically after set the p[ath
 via like this.


 For more details

 1. Login youtube.
 2. Uninstall Fal;sh player in your machine
 3. Goto upload video page.
 4. Set the path like this

 $ie.file_field( :name, document ).set( c:\\Watir Testware\\Data\\vb.txt
 )

 5. Still the upload button disabled.


 Thats why i am asking the alternate way to do this.

 Awaiting your reply

 Thanks


 On Sun, Oct 4, 2009 at 2:55 AM, Bill Agee billa...@gmail.com wrote:

 What browser version are you using?  Also, is the path to the file being
 set properly in the dialog?

 Thanks
 Bill



 On Sat, Oct 3, 2009 at 4:28 AM, Raveendran P jazzezr...@gmail.comwrote:

 Hi All,

 Any alternate method for this code

 $ie.file_field( :name, document ).set( c:\\Watir
 Testware\\Data\\vb.txt )


 I need alternate for this code ...

 Reason :

 After did the above line the Upload button is not enabled
 automatically. But it happens when i select files manually



 Thanks in Advance

 --
 Regards,
 P.Raveendran
 http://raveendran.wordpress.com





 



 --
 Regards,
 P.Raveendran
 http://raveendran.wordpress.com




-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: File Field Help

2009-10-05 Thread Raveendran P
Hi Bill,


My Bad luck ,

After $ff.refresh -- Still the upload video button is not enabled .. :)

Awaiting your reply

Thanks


On Mon, Oct 5, 2009 at 3:04 PM, Bill Agee billa...@gmail.com wrote:

 Ah, so it's a difference in behavior between FireWatir and Watir?

 Not sure why that would happen.  Perhaps setting the field with Firefox
 doesn't fire the necessary events to enable the upload button?  Don't know.

 You might try invoking the refresh() method on the Firefox object after you
 set the field value.  I doubt it will help, but you never know.  I've had
 problems where what is displayed in the browser seems to go out of sync with
 FireWatir's view of the DOM (specifically, elements you can see in the page
 are not accessible from script).  But refreshing the browser usually fixes
 it.


 On Sun, Oct 4, 2009 at 9:00 PM, Raveendran P jazzezr...@gmail.com wrote:

 Hi Bill,

 For more details,


 The same code working in WATIR:


 $ie.file_field(:name, field_uploadfile).set($video_files[0])

 $ie.span(:text, 'Upload Video').click


 Here i can able to click the Upload Video span . Because it is enabled
 after set the file_field path.

 But the same code not working in FireWatir for Firefox browser

 It means, The Upload Video span not enabled automatically after set the
 path like

   $ff.file_field(:name, field_uploadfile).set($video_files[0])


 Any more details need ?






 On Sun, Oct 4, 2009 at 8:54 PM, Raveendran P jazzezr...@gmail.comwrote:

 Hi Bill,

 That code sets properly. Its working exactly . But i need alternate way
 to do this.

 Because The upload button is not enabled automatically after set the
 p[ath via like this.


 For more details

 1. Login youtube.
 2. Uninstall Fal;sh player in your machine
 3. Goto upload video page.
 4. Set the path like this

 $ie.file_field( :name, document ).set( c:\\Watir
 Testware\\Data\\vb.txt )

 5. Still the upload button disabled.


 Thats why i am asking the alternate way to do this.

 Awaiting your reply

 Thanks


 On Sun, Oct 4, 2009 at 2:55 AM, Bill Agee billa...@gmail.com wrote:

 What browser version are you using?  Also, is the path to the file being
 set properly in the dialog?

 Thanks
 Bill



 On Sat, Oct 3, 2009 at 4:28 AM, Raveendran P jazzezr...@gmail.comwrote:

 Hi All,

 Any alternate method for this code

 $ie.file_field( :name, document ).set( c:\\Watir
 Testware\\Data\\vb.txt )


 I need alternate for this code ...

 Reason :

 After did the above line the Upload button is not enabled
 automatically. But it happens when i select files manually



 Thanks in Advance

 --
 Regards,
 P.Raveendran
 http://raveendran.wordpress.com









 --
 Regards,
 P.Raveendran
 http://raveendran.wordpress.com




 --
 Regards,
 P.Raveendran
 http://raveendran.wordpress.com





 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: earn money through Home based internet jobs

2009-10-05 Thread Raveendran P
Hi Group Administrator(Moderator),

To avoid this kind of spam mails,

1. When the user requested to join this group -- Ask simple 5 watir related
questions

2. Block other members to send email to watir-general@googlegroups.com

Because most of the forums has junk of Spam mails like this. We are testers
here. We should stop their work ...

Thanks
P.Raveendran
http://raveendran.wordpress.com

On Mon, Oct 5, 2009 at 4:32 PM, samram samy smrm...@gmail.com wrote:



 HI FRIENDS


 If you want to earn Rs.200($5) to Rs.1200($30) per hour, starting
 today from the Internet without
 any Investment. Just give your 3 minutes to read on  see how it can
 change your life.
 Dear Internet Friend,
 Nice to meet you. We have designed this website exclusively for the
 people,
 who want to earn money through Home based internet jobs without any
 investment,
 just by spending few hours on Internet, in a day.
 Benefits and Advantages
 1. Work part time.
 2. Earn unlimited income from Internet, by just working 1-2 flexible
 hours daily.
 3. Work from anywhere - Home/Cyber Cafe/Office
 4. No extra qualification required. Just basic Internet browsing
 knowledge is enough.
 5. Absolutely NO investment AND NO registration fee .
 A.W.Surveys The New Survey ExperienceMake money from taking online
 surveys with AWSurveys!
 You get paid for each survey, the longer the survey the more you get
 paid! AWSurveys is the New Survey ...
 Clik this link and sign up there.

 

 http://www.sumathsa.com

 http://www.bigmoneyptc.com/index.php?ref=sathish ramya
 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: Open and close Browser repeatedly leads to ie hanging

2009-10-16 Thread Raveendran P
Hi Pallavi,

It seems you are continuously opening and closing ie windows.

1. Try this manually --You will face the same issue because of low - System
Capacity / Internet connection

No other reason for this issue.

Am i rit ? if wrong, I am  also expecting the answer from others

Thanks,
P.Raveendran
http://raveendran.wordpress.ocm

On Fri, Oct 16, 2009 at 3:53 PM, pallavi shashidhar
pals.sha...@gmail.comwrote:

 Hi There,
 We have a couple of watir scripts that are run as regression suite on a CI
 server (cruise control).
 Have installed Ruby 1.8.6.26 and watir 1.6 with IE7.
 System specification ; windows server 2003 edition, 500gb, 4gb RAM

 All the scripts are made independent and hence we have a start_browser and
 browser.close at setup and teardown.
 After a while, i find that ie keeps hanging and am not able to proceed
 unless i close the browser manually and yet i see that the ie process is not
 being killed.
 This leads us to lot of RPC server unavailable errors:

 When the suite is run again, i get a lot of these errors:

 failed to create WIN32OLE object from `InternetExplorer.Application'
 HRESULT error code:0x80004005
 Unspecified error (WIN32OLERuntimeError)
 c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:167:in
 `initialize'
 c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:167:in
 `new'
 c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:167:in
 `create_browser_window'
 c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:91:in
 `_new_window_init'
 c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:81:in
 `new_window'
 c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:105:in
 `start_window'
 c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:99:in
 `start'
 c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/browser.rb:71:in
 `start'

 Have tried one of the 3 solutions that Bret has mentioned i.e,
 Create an additional IE. As long as this lives, the IE server will continue
 to live and you can close and create IE windows without worry.

 Inspite of having done this, i get the errors. We cannot completely avoid
 opening and closing of browsers as more and more scripts are added to the
 regression suite.
 What could be the reason for ie to hang and how can that be avoided?

 Regards,
 Pallavi

 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: file_field in File Upload dialog

2009-10-27 Thread Raveendran P
Hi Kogi,


require 'rubygems'
require 'win32ole'

homers_bird(File_Upload_window_Name)

def homers_bird(dialog_name,key={enter})
  @ur=C:\\Documents and Settings\\raveendran\\My Documents\\My
Videos\\nike_airport.flv

  wsh = WIN32OLE.new('WScript.Shell')
  wsh.AppActivate(dialog_name)
  sleep(2)
  wsh.SendKeys({TAB})
   sleep(2)
  wsh.SendKeys({TAB})
   sleep(2)
  wsh.SendKeys({TAB})
   sleep(2)
  wsh.SendKeys({TAB})
   sleep(2)
   wsh.SendKeys(@ur)
   sleep(2)
  wsh.SendKeys({ENTER})
  sleep(2)
end

#After set the File path Nex tactions ..



I hope the above code will give some idea to you.

Thanks,
P.Raveendran
http://raveendran.wordpress.com


On Tue, Oct 27, 2009 at 6:50 AM, Ethan notet...@gmail.com wrote:

 You want to interact with the elements of the 'file upload' dialog? As far
 as I know that thing doesn't have a document or elements that you can access
 like an html page. Or if it doesn't watir doesn't support that anyway. I
 could be wrong - if you figure out how to get a WIN32OLE handle on elements
 of the file upload dialog, I would be very interested in knowing how to do
 that.


 On Mon, Oct 26, 2009 at 21:14, H Kogi hko...@gmail.com wrote:

 Thank you for quick reply.  But I cannot see each object in dialog box as
 html element.  Is there anyway I can view as html elements?  IE developer
 toolbar does not work.   I am now trying with WIN32OLE.

  On Mon, Oct 26, 2009 at 8:15 PM, Bret Pettichord b...@pettichord.comwrote:


 H Kogi wrote:
 
  I may be missing something very simple.  When I get window's File
  Upload dialog, how can I identify file_field's i.e. id, name, index,
  etc?  (index did not work).  I looked in to the the following site and
  all the links from there but not finding answers.
 
  http://wiki.openqa.org/display/WTR/File+Uploads


 http://wiki.openqa.org/display/WTR/Watir+Methods+Supported+by+HTML+Element

 --
 Bret Pettichord
 Lead Developer, Watir, www.watir.com
 Blog, www.io.com/~wazmo/blog http://www.io.com/%7Ewazmo/blog
 Twitter, www.twitter.com/bpettichord







 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: watir or selenium

2009-10-27 Thread Raveendran P
Hi E,

   This link will highlight some imp points -- http://bit.ly/1dtC2w

thanks

On Tue, Oct 27, 2009 at 7:21 PM, Gossler Erika gossler.er...@gmail.comwrote:

 Hi,

 I'm searching any info of comparing Watir and Selenium.

 I have found a lot of usefull linkstips on the internet, but if you have
 some recent comparison of these two let me know.

 Many thanks,
 E.

 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: Basic authentication on Linux with FireWatir

2009-10-27 Thread Raveendran P
Hi Aedorn,

   I got some idea's from Selenium.I implemented it in my Watir
scripts. Have you tried this way?  --  http://bit.ly/21zDrH

Awaiting your reply

Thanks

On Wed, Oct 28, 2009 at 6:03 AM, Ethan notet...@gmail.com wrote:

 Yeah, you should be able to get a handle to the window where you enter
 username/password, get the text fields on that window, set them, click the
 'ok' button. That'd all be in javascript over the jssh socket.


 On Tue, Oct 27, 2009 at 20:28, aidy lewis aidy.le...@googlemail.comwrote:


 The Firefox browser is completly scriptable. I would suggest looking
 at the Mozilla js classes.

 2009/10/27 Chris christopher.mcma...@gmail.com:
 
 
  I looked into this a long time ago, and there is no way to persist a
  Basic Auth session in a browser.  You have to have credentials for
  every page request and every frame within every page.   I was hacking
  around deep in the guts of Watir trying to make this work and failed.
 
  Nor do I know of any other tool that makes this possible.  There might
  be something fancy you could do in multiple libraries used by Watir,
  buiret I did not have that kind of mandate.
 
  I suggest a well-designed set of manual tours.
 
  -Chris
 
  On Oct 27, 1:53 pm, Aedorn Varanis aed...@gmail.com wrote:
  This doesn't really solve the problem.
 
  On Tue, Oct 27, 2009 at 1:09 PM, aidy lewis aidy.le...@googlemail.com
 wrote:
 
 
 
   Can you not set your trusted uri's in about:config
 
   network.automatic-ntlm-auth.trusted-uris ?
 
   Aidy
 
   2009/10/27 Aedorn Varanis aed...@gmail.com:
I took a look around but it doesn't like there's any answer to
 this. I've
recently been tasked to automate testing of a product, and the only
 thing
   I
can't seem to solve is basic authentication, which is rather funny
 to me,
but not so much to those who are waiting on this being done.
 
So how can one go about doing basic authentication with
 FireWatir/Firefox
   on
Linux currently?
 
 
  
 




 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: watir or selenium

2009-10-28 Thread Raveendran P
Hi Jarmo,

 Thanks Pallavi for your exact answer for Jarmo's question and as well
as my paras.

Thats why I have mentioned the word --  taking advantage of
language-specific drivers of language-specific driverstaking advantage of
language-specific drivers
Jarmo , Let me know still u need more info

Thanks


On Wed, Oct 28, 2009 at 6:19 PM, Pallavi Sharma write2pall...@gmail.comwrote:

 Sorry to answer as the question as it is not directed to all

 I believe what Raveendran means is that with Selenium you can code in your
 own fav programming language whether its java, perl, ruby, c# etc etc . For
 each their is a driver available which interacts with selenium RC.

 But watir works with Ruby

 where as there are other flavours of watir also available known as watij
 for java, watIN for .net

 and the blog was a nice representation of the available feature test. nice
 job Raveendran.

 Its a good discussion, being a user of open source tools for a long time
 now.. even i am not sure which one is better over other..

 but some insights are helpful to judge what works for you the best...

 --
 Pallavi.


 On Wed, Oct 28, 2009 at 5:44 PM, Jarmo Pertman jarm...@gmail.com wrote:


 Hello, Raveendran.

 I got confused by the last sentence in your blog You can also express
 Selenium tests in a programming language, taking advantage of language-
 specific drivers that communicate in Selenese to the browser bot..
 What did you mean by that exactly? I mean, why cannot you express
 Watir tests in a programming language? Aren't you programming Watir
 tests in Ruby - so in a programming language? Or are you not
 considering Ruby as a programming language? :P

 Jarmo

 On Oct 28, 6:16 am, Raveendran P jazzezr...@gmail.com wrote:
  Hi E,
 
 This link will highlight some imp points --
 http://bit.ly/1dtC2w
 
  thanks
 
  On Tue, Oct 27, 2009 at 7:21 PM, Gossler Erika gossler.er...@gmail.com
 wrote:
 
   Hi,
 
   I'm searching any info of comparing Watir and Selenium.
 
   I have found a lot of usefull linkstips on the internet, but if you
 have
   some recent comparison of these two let me know.
 
   Many thanks,
   E.
 
  --
  Regards,
  P.Raveendranhttp://raveendran.wordpress.com



 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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 help about startClicker

2009-10-28 Thread Raveendran P
Hi Bindhu,


Sorry for interrupt but may be this will help to solve ur problem.


Try with this article -- http:// goog_1256773908603bit.ly/3TbxYr
http://bit.ly/3TbxYr and
Replace the window name notepad' to your pop-up window name.



Thanks

On Thu, Oct 29, 2009 at 11:06 AM, Bindhu udayarekha2...@gmail.com wrote:


 Hi Zeljko,

 I am really sorry that I have not clearly described what exactly I
 want to do in my previous query.
 There is popup with warning message will appear, if we try to create
 the customer with the existing customer details. I wanted to click OK
 to continue with remaning functionality.
 I am using startClicker(). It is handling Popup when ever it appears
 and executing the remaining code. But the problem here is if the popup
 does not appear script is waiting for it appear and NOT proceeding
 with remaining script.

 Can it handle this situation by getting the property of the Popup? If
 so how can get the property of it.

 Thanks In Advance

 On Oct 21, 1:10 pm, Željko Filipin zeljko.fili...@wa-research.ch
 wrote:
  On Wed, Oct 21, 2009 at 6:37 AM, Bindhu udayarekha2...@gmail.com
 wrote:
   I need to skip the pop up when ever it appear.
 
  And the problem is?
 
  Have you read this?
 
  http://wiki.openqa.org/display/WTR/Pop+Ups
 
  Željko
  --http://watirpodcast.com/
 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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 help about startClicker

2009-10-29 Thread Raveendran P
Hi Bindhu,

Try  with this change

 if ouput == true

  else

end

1. Replace = to ==.
2.Replace 'true' to true -- it returns true -- it is not a string

Awaiting your reply

On Thu, Oct 29, 2009 at 12:20 PM, Bindhu udayarekha2...@gmail.com wrote:


 Hi Raveendran,

 Thanks a lot for ur reply.
 If popup does not appear also it is returning 'true'.

  if ouput ='true'
   puts pop up
   startClicker( OK )
  else
 puts no popup
 sleep(5)
 $ie = Watir::IE.find(:url,/search.do/)
 $ie = Watir::IE.find(:url,/secure/)
 $ie.frame(:name, mainFrame).button(:id,submitBtn).click
 end
 It is handling popup if appears but not executing the remaning code.
 And if popup does not appear it is still waiting for it.
 Am I using to your code correctly. Please let me know..

 Thanks

 On Oct 29, 10:50 am, Raveendran P jazzezr...@gmail.com wrote:
  Hi Bindhu,
 
  Sorry for interrupt but may be this will help to solve ur problem.
 
  Try with this article -- http:// goog_1256773908603bit.ly/3TbxYr
  http://bit.ly/3TbxYr and
  Replace the window name notepad' to your pop-up window name.
 
  Thanks
 
 
 
 
 
  On Thu, Oct 29, 2009 at 11:06 AM, Bindhu udayarekha2...@gmail.com
 wrote:
 
   Hi Zeljko,
 
   I am really sorry that I have not clearly described what exactly I
   want to do in my previous query.
   There is popup with warning message will appear, if we try to create
   the customer with the existing customer details. I wanted to click OK
   to continue with remaning functionality.
   I am using startClicker(). It is handling Popup when ever it appears
   and executing the remaining code. But the problem here is if the popup
   does not appear script is waiting for it appear and NOT proceeding
   with remaining script.
 
   Can it handle this situation by getting the property of the Popup? If
   so how can get the property of it.
 
   Thanks In Advance
 
   On Oct 21, 1:10 pm, Željko Filipin zeljko.fili...@wa-research.ch
   wrote:
On Wed, Oct 21, 2009 at 6:37 AM, Bindhu udayarekha2...@gmail.com
   wrote:
 I need to skip the pop up when ever it appear.
 
And the problem is?
 
Have you read this?
 
   http://wiki.openqa.org/display/WTR/Pop+Ups
 
Željko
--http://watirpodcast.com/
 
  --
  Regards,
  P.Raveendranhttp://raveendran.wordpress.com- Hide quoted text -
 
  - Show quoted text -
 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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 help about startClicker

2009-10-29 Thread Raveendran P
Hi Bindhu,

 Its Strange ! There is not possible to return true but it occurs now.

Let us wait for Zeljko's update.

Thanks



On Thu, Oct 29, 2009 at 12:39 PM, Bindhu udayarekha2...@gmail.com wrote:


 Hi Raveendran,

 It is still returning true even though popup does not appear.
 The below is the code:
 if ouput == true
   puts pop up
   startClicker( OK )
   else
 puts no popup
 $ie = Watir::IE.find(:url,/search.do/)
 sleep(5)
 $ie.frame(:name, mainFrame).button(:id,submitBtn).click
 $ie.frame(:name, mainFrame).button(:id,addProducts).click

 Thanks


 On Oct 29, 11:55 am, Raveendran P jazzezr...@gmail.com wrote:
  Hi Bindhu,
 
  Try  with this change
 
   if ouput == true
 
else
 
  end
 
  1. Replace = to ==.
  2.Replace 'true' to true -- it returns true -- it is not a string
 
  Awaiting your reply
 
 
 
 
 
  On Thu, Oct 29, 2009 at 12:20 PM, Bindhu udayarekha2...@gmail.com
 wrote:
 
   Hi Raveendran,
 
   Thanks a lot for ur reply.
   If popup does not appear also it is returning 'true'.
 
if ouput ='true'
 puts pop up
 startClicker( OK )
else
   puts no popup
   sleep(5)
   $ie = Watir::IE.find(:url,/search.do/)
   $ie = Watir::IE.find(:url,/secure/)
   $ie.frame(:name, mainFrame).button(:id,submitBtn).click
   end
   It is handling popup if appears but not executing the remaning code.
   And if popup does not appear it is still waiting for it.
   Am I using to your code correctly. Please let me know..
 
   Thanks
 
   On Oct 29, 10:50 am, Raveendran P jazzezr...@gmail.com wrote:
Hi Bindhu,
 
Sorry for interrupt but may be this will help to solve ur problem.
 
Try with this article -- http:// goog_1256773908603bit.ly/3TbxYr
http://bit.ly/3TbxYr and
Replace the window name notepad' to your pop-up window name.
 
Thanks
 
On Thu, Oct 29, 2009 at 11:06 AM, Bindhu udayarekha2...@gmail.com
   wrote:
 
 Hi Zeljko,
 
 I am really sorry that I have not clearly described what exactly I
 want to do in my previous query.
 There is popup with warning message will appear, if we try to
 create
 the customer with the existing customer details. I wanted to click
 OK
 to continue with remaning functionality.
 I am using startClicker(). It is handling Popup when ever it
 appears
 and executing the remaining code. But the problem here is if the
 popup
 does not appear script is waiting for it appear and NOT proceeding
 with remaining script.
 
 Can it handle this situation by getting the property of the Popup?
 If
 so how can get the property of it.
 
 Thanks In Advance
 
 On Oct 21, 1:10 pm, Željko Filipin zeljko.fili...@wa-research.ch
 wrote:
  On Wed, Oct 21, 2009 at 6:37 AM, Bindhu 
 udayarekha2...@gmail.com
 wrote:
   I need to skip the pop up when ever it appear.
 
  And the problem is?
 
  Have you read this?
 
 http://wiki.openqa.org/display/WTR/Pop+Ups
 
  Željko
  --http://watirpodcast.com/
 
--
Regards,
P.Raveendranhttp://raveendran.wordpress.com-Hide quoted text -
 
- Show quoted text -
 
  --
  Regards,
  P.Raveendranhttp://raveendran.wordpress.com- Hide quoted text -
 
  - Show quoted text -
 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: Unable to update gems and install watir

2009-10-29 Thread Raveendran P
Hi Suriya,

 try with this

gem install watir -v1.6.2

If any error occurs then pls let me know ..

Thanks



On Wed, Oct 28, 2009 at 4:57 PM, ravisuri...@gmail.com 
ravisuri...@gmail.com wrote:


 Hi,

 1.  Installed Ruby (ruby186-26.exe) available at URL ---
 http://rubyforge.org/frs/download.php/29263/ruby186-26.exe

 2. Found that Ruby 186-26 was installed successfully.

 3. Opened a command prompt. Entered the command:
 gem update --system

 Observed the below written error:

 Updating RubyGems...
 Bulk updating Gem source index for: http://gems.rubyforge.org
 Attempting remote update of rubygems-update
 Install required dependency builder? [Yn]  y
 Install required dependency session? [Yn]  y
 Install required dependency hoe-seattlerb? [Yn]  y
 Install required dependency hoe? [Yn]  y
 Install required dependency rubyforge? [Yn]  y
 Install required dependency json_pure? [Yn]  y
 ERROR:  While executing gem ... (Gem::InstallError)
invalid gem format for c:/ruby/lib/ruby/gems/1.8/cache/
 rubyforge-2.0.3.gem


 4. Moving ahead entered the command:

 gem install watir

 Observed the below written error:


 C:\gem install watir
 Install required dependency win32-process? [Yn]  y
 Install required dependency windows-pr? [Yn]  y
 Install required dependency windows-api? [Yn]  y
 Install required dependency win32-api? [Yn]  y
 Select which gem to install for your platform (i386-mswin32)
  1. win32-api 1.4.5 (ruby)
  2. win32-api 1.4.5 (x86-mswin32-60)
  3. Skip this gem
  4. Cancel installation
  1
 Install required dependency test-unit? [Yn]  y
 Install required dependency hoe? [Yn]  y
 Install required dependency rubyforge? [Yn]  y
 ERROR:  While executing gem ... (Gem::InstallError)
invalid gem format for c:/ruby/lib/ruby/gems/1.8/cache/
 rubyforge-2.0.3.gem

 C:\gem install watir
 Install required dependency win32-process? [Yn]  y
 Install required dependency windows-pr? [Yn]  y
 Install required dependency windows-api? [Yn]  y
 Install required dependency win32-api? [Yn]  y
 Select which gem to install for your platform (i386-mswin32)
  1. win32-api 1.4.5 (ruby)
  2. win32-api 1.4.5 (x86-mswin32-60)
  3. Skip this gem
  4. Cancel installation
  2
 Install required dependency win32-api? [Yn]  y
 Select which gem to install for your platform (i386-mswin32)
  1. win32-api 1.4.5 (ruby)
  2. win32-api 1.4.5 (x86-mswin32-60)
  3. Skip this gem
  4. Cancel installation
  2
 ERROR:  While executing gem ... (Gem::InstallError)
invalid gem format for c:/ruby/lib/ruby/gems/1.8/cache/windows-
 pr-1.0.8.gem

 C:\gem install watir
 Install required dependency win32-process? [Yn]  y
 Install required dependency windows-pr? [Yn]  y
 ERROR:  While executing gem ... (Gem::InstallError)
invalid gem format for c:/ruby/lib/ruby/gems/1.8/cache/windows-
 pr-1.0.8.gem

 C:\




 It was not possible to install neither Watir nor update the ruby gems.

 OS: Windows 2003 Server
 Firewall was set to OFF

 *Note: The same was behavior was noticed in Windows XP SP3 too.


 Please help me with, any other ways to overcome from these observed
 behaviors?



 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: Data driven framework using SQL database

2009-10-29 Thread Raveendran P
Hi,

Try this article to connect sql database http://bit.ly/2G9Z3E

http://bit.ly/2G9Z3EThanks


On Thu, Oct 29, 2009 at 5:03 PM, Pritam pmaha...@gmail.com wrote:



 Hi guys,

 I am new to ruby programming, and I need help in developing data
 driven framework which uses sql database for retrieving data. I have
 seen a lot of examples over internet which showed how to do it using
 excel and open source applications.

 To start with I need information for the following.

 1. How to connect to a sql database using ruby/watir scripts?
 2. What sought of architecture am I looking for?

 Thanks in advance.



 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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 help about startClicker

2009-10-29 Thread Raveendran P
Hi Bin,

 Your guess is correct. But I am finding(trying to find) the alternative
way  for this.

thanks

On Thu, Oct 29, 2009 at 12:58 PM, Bindhu udayarekha2...@gmail.com wrote:


 Hi Ravenedraan,

 I guess why it is returning true.
 The title of the popup is Microsoft Internet Explorer.So I said
  window_name_opened('Microsoft Internet Explorer').

 IE window which is opend to execute my application has title
 Microsoft Internet Explorer. That is reason why it is returning
 true even though the popup does not appear.

 If my guess is correct, is there any other alternat way to handle the
 popup... like based on the warning message printed on the popup

 Thanks

 On Oct 29, 12:15 pm, Raveendran P jazzezr...@gmail.com wrote:
  Hi Bindhu,
 
   Its Strange ! There is not possible to return true but it occurs now.
 
  Let us wait for Zeljko's update.
 
  Thanks
 
 
 
 
 
  On Thu, Oct 29, 2009 at 12:39 PM, Bindhu udayarekha2...@gmail.com
 wrote:
 
   Hi Raveendran,
 
   It is still returning true even though popup does not appear.
   The below is the code:
   if ouput == true
 puts pop up
 startClicker( OK )
 else
   puts no popup
   $ie = Watir::IE.find(:url,/search.do/)
   sleep(5)
   $ie.frame(:name, mainFrame).button(:id,submitBtn).click
   $ie.frame(:name, mainFrame).button(:id,addProducts).click
 
   Thanks
 
   On Oct 29, 11:55 am, Raveendran P jazzezr...@gmail.com wrote:
Hi Bindhu,
 
Try  with this change
 
 if ouput == true
 
  else
 
end
 
1. Replace = to ==.
2.Replace 'true' to true -- it returns true -- it is not a string
 
Awaiting your reply
 
On Thu, Oct 29, 2009 at 12:20 PM, Bindhu udayarekha2...@gmail.com
   wrote:
 
 Hi Raveendran,
 
 Thanks a lot for ur reply.
 If popup does not appear also it is returning 'true'.
 
  if ouput ='true'
   puts pop up
   startClicker( OK )
  else
 puts no popup
 sleep(5)
 $ie = Watir::IE.find(:url,/search.do/)
 $ie = Watir::IE.find(:url,/secure/)
 $ie.frame(:name, mainFrame).button(:id,submitBtn).click
 end
 It is handling popup if appears but not executing the remaning
 code.
 And if popup does not appear it is still waiting for it.
 Am I using to your code correctly. Please let me know..
 
 Thanks
 
 On Oct 29, 10:50 am, Raveendran P jazzezr...@gmail.com wrote:
  Hi Bindhu,
 
  Sorry for interrupt but may be this will help to solve ur
 problem.
 
  Try with this article -- http:// goog_1256773908603
 bit.ly/3TbxYr
  http://bit.ly/3TbxYr and
  Replace the window name notepad' to your pop-up window name.
 
  Thanks
 
  On Thu, Oct 29, 2009 at 11:06 AM, Bindhu 
 udayarekha2...@gmail.com
 wrote:
 
   Hi Zeljko,
 
   I am really sorry that I have not clearly described what
 exactly I
   want to do in my previous query.
   There is popup with warning message will appear, if we try to
   create
   the customer with the existing customer details. I wanted to
 click
   OK
   to continue with remaning functionality.
   I am using startClicker(). It is handling Popup when ever it
   appears
   and executing the remaining code. But the problem here is if
 the
   popup
   does not appear script is waiting for it appear and NOT
 proceeding
   with remaining script.
 
   Can it handle this situation by getting the property of the
 Popup?
   If
   so how can get the property of it.
 
   Thanks In Advance
 
   On Oct 21, 1:10 pm, Željko Filipin 
 zeljko.fili...@wa-research.ch
   wrote:
On Wed, Oct 21, 2009 at 6:37 AM, Bindhu 
   udayarekha2...@gmail.com
   wrote:
 I need to skip the pop up when ever it appear.
 
And the problem is?
 
Have you read this?
 
   http://wiki.openqa.org/display/WTR/Pop+Ups
 
Željko
--http://watirpodcast.com/
 
  --
  Regards,
  P.Raveendranhttp://raveendran.wordpress.com-Hidequoted text -
 
  - Show quoted text -
 
--
Regards,
P.Raveendranhttp://raveendran.wordpress.com-Hide quoted text -
 
- Show quoted text -
 
  --
  Regards,
  P.Raveendranhttp://raveendran.wordpress.com- Hide quoted text -
 
  - Show quoted text -
 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: How to get html meta details

2009-11-02 Thread Raveendran P
Hi Marlon,

If you want* pure RUBY code* for that purpose then please try with this
http://bit.ly/4mDHoJ

Thanks

On Tue, Nov 3, 2009 at 9:21 AM, Marlon marlonmoja...@gmail.com wrote:

 I found the part of the solution here
 http://groups.google.com/group/watir-general/browse_thread/thread/5668eca30fdf784/940aa7f7be28c75d?lnk=gstq=meta#940aa7f7be28c75dbut
  it still did not solve my problem.

 *sample html*


 html
 head
 titletitle/title
 meta content=title name=keywords/
 meta content=text/html; charset=iso-8859-1 http-equiv=Content-Type/

 *ruby file*

 require 'watir'
 require 'test/unit'

 class TC_MyTest  Test::Unit::TestCase

   def test_meta_get
 $ie = Watir::IE.start('url to check')
 d=meta($ie)
 puts d
   end

  def meta( browser )
 meta = {}
 bmeta =
 browser.document.body.parentElement.getElementsByTagName( META )
 bmeta.each do |i|
 k = i.name
 if k == 
 k = i.httpEquiv
 end
 meta[ k ] = i.content
 end
 return meta
 end
 end


 this produces:

 Content-Typetext/html; charset=iso-8859-1title   keywords


 I what to be able to get first meta tag name attribute which is *
 keywords*




 many thanks again!
 Marlon





 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: How to get html meta details

2009-11-03 Thread Raveendran P
Hi Marlon,

welcome ... !

On Tue, Nov 3, 2009 at 1:11 PM, Marlon marlonmoja...@gmail.com wrote:



 Hi Raveendran,

 I was able to get what I want. For now im going to use it.

 thanks lot for helping!

 marlon




 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: How to get html meta details

2009-11-03 Thread Raveendran P
Hi Chen,


The code in my blog follows ...

code=’html
head
titletitle/title
meta content=”title” name=”keywords”/
meta content=”text/html; charset=iso-8859-1″ http-equiv=”Content-
Type”/’

puts content= code.scan(%r{content=”(.*?)”}im).flatten[0].to_s
puts name=code.scan(%r{name=”(.*?)”}im).flatten.to_s



Output:

title
keywords

Thanks





On Tue, Nov 3, 2009 at 4:31 PM, Wesley Chen cjq@gmail.com wrote:

 But I can't access the URL: http://bit.ly/4mDHoJ
 How can I make it?


 Thanks.
 Wesley Chen.
 For life, the easier, the better.


 On Tue, Nov 3, 2009 at 4:42 PM, Raveendran P jazzezr...@gmail.com wrote:

 Hi Marlon,

 welcome ... !


 On Tue, Nov 3, 2009 at 1:11 PM, Marlon marlonmoja...@gmail.com wrote:



 Hi Raveendran,

 I was able to get what I want. For now im going to use it.

 thanks lot for helping!

 marlon








 --
 Regards,
 P.Raveendran
 http://raveendran.wordpress.com





 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: clear/delete browser cookie on firewatir (ubuntu)

2009-11-06 Thread Raveendran P
Hi Marlon,

 Few months before I had faced the same issue but not found any solution
in Firewatir. So i used  Ccleaner with ruby --http://bit.ly/4iYTtB

I am also expecting the solution in Firewatir itself.

Let us wait some other updates regards this thread.

Thanks


On Fri, Nov 6, 2009 at 1:02 PM, Marlon marlonmoja...@gmail.com wrote:


 Hi,

 How can I delete browser cookies on firewatir?

 thanks,
 Marlon
 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: Can Watir fetch the system time?

2009-11-08 Thread Raveendran P
Hi Zhong,

Ruby can but i am not sure about Watir.

The Ruby code to get system time in Ubuntu machine:

systime.rb

mytime=`date`
puts time=mytime.split(' ')[3]

output:
10:48:31



For windows -- Please refer http://bit.ly/iub2C

Thanks



On Mon, Nov 9, 2009 at 10:04 AM, yuping zhong littlezhong...@gmail.comwrote:


 Dear All,

 I want to know if Watir can get the system time.
 If true,how to do that?

 Thanks!

 -Zhong
 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: Really....Ruby + Watir + Command Line

2009-11-09 Thread Raveendran P
Hi,

Add first line -- require 'rubygems'
Remove line no.2 -- include Watir

I hope it works now. If its not working then Please provide more details
about Watir Verison and Ruby version.


Thanks

On Tue, Nov 10, 2009 at 3:19 AM, tester86 sagar.am...@gmail.com wrote:


 I am trying to run a watir script:

 require 'watir'
 include Watir

 ie = Watir::IE.new
 ie.goto(http://google.com;)

 ie.text_field(:name, q).set(watir)
 ie.button(:name, btnG).submit

 when I run it from command line ruby filename.rb I get the following
 error message:

 c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1336:in `method_missing':
 unknown proper
 ty or method `document' (WIN32OLERuntimeError)
HRESULT error code:0x800706ba
  The RPC server is unavailable.from c:/ruby/lib/ruby/
 site_ruby/1.8/watir.rb:1336:in `document'
from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:754:in
 `getContainerContents'
from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:778:in
 `getObject'
from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3225:in
 `initialize'
from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:367:in `new'
from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:367:in
 `text_field'
from script1.rb:6

 Any Ideas.?
 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: click on item in span

2009-11-17 Thread Raveendran P
Hi Kai,

Welcome. Before posting any question please search in existing lists. Please
follow it because the same topic available in more than 25 threads. So
please search in lists and raise new thread.

Thanks

On Tue, Nov 17, 2009 at 9:08 PM, Kai kphapa...@gmail.com wrote:


 This solution worked for me.

 Thanks a lot!

 On Nov 17, 2:05 am, Raveendran P jazzezr...@gmail.com wrote:
  Hi Kai,
 
  I hope it helps -- ie.span(:text,'MZ Test Search').click
 
  If it is not working then please provide the html code for that page
  (Atleast a tag details)
 
  Thanks
 
 
 
 
 
  On Tue, Nov 17, 2009 at 3:47 AM, Kai kphapa...@gmail.com wrote:
 
   Hi. I need to be able to click on MZ Test Search. Does anyone know
   what method to use to click on this? I've tried ie.link(:text, MZ
   Test Search).click but does not work.
 
   li class=last searchid=-32752
   span class=file title=Name: MZ Test Search Description: Complex
   Results with lots of filters for 14 days. searchid=-32752
   ispublic=trueMZ Test Search/span
   /li
 
   Thank you,
   Kai
 
  --
  Regards,
  P.Raveendranhttp://raveendran.wordpress.com- Hide quoted text -
 
  - Show quoted text -
 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: happy belated birthday watir.

2009-11-19 Thread Raveendran P
Hi Team,

Watir Rocks...

Congrats team.

Water is must for real world. Watir is must automation world!

Regards,
P.Raveendran
http://raveendran.wordpress.com




On Thu, Nov 19, 2009 at 5:31 PM, jnxgn s...@jnxgn.cn wrote:


 Happy Birthday!


 On Nov 19, 2:53 am, Paul Rogers paul.rog...@shaw.ca wrote:
  If Im correct, watirs first public appearance was 5 years ago ( plus a
 few
  days as I forgot to send the email).
 
  Bret was teaching a class on test automation at StarWest, and I helped
 out.
  This was the first appearance of watir. During the class we found lots of
  bugs. Thanks to all the students for not walking out on us. Is anyone
 from
  that class on the list?
 
  http://www.sqe.com/Events/Archive/sw2004/tutorials.html
 
  Paul
 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

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



Re: [wtr-general] Re: Save dynamic image

2009-12-15 Thread Raveendran P
Hi ,

Please post the *answer* here. That may help to others, who are facing the
same issue.

Thanks

On Tue, Dec 15, 2009 at 7:35 PM, bm broke...@gmail.com wrote:

 I solve my problem, so ignore this topic :)

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




-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

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

Re: [wtr-general] Help Installing Watir

2010-07-05 Thread Raveendran P
Hi,

Are you trying to update behind PROXY ?



On Sun, Jul 4, 2010 at 1:54 AM, Watir amkau...@hotmail.com wrote:

 So I have downloaded Ruby 186-26, and now I need help installing
 Watir. Every time in the command prompt I type gem update--system, it
 gives me a runtime error. Also when I type gem install watir, it
 states that could not find watir in any repository. Please help.
 Thanks a lot.

 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com




-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] click_no_wait, why so inconsistent?

2010-07-05 Thread Raveendran P
Hi,

Pls hav a look at this

http://raveendran.wordpress.com/2010/06/08/watir-click_no_wait-for-checkbox/


Thanks



On Sat, May 22, 2010 at 5:18 AM, cslumension cslumens...@gmail.com wrote:

 Want to download files, using a click_no_wait method, which works
 great the first time it's called, but each sequential call after that
 only highlights the item and no Save As box is displayed.  There is a
 similar issue raised two years ago without a defined conclusion,

 http://groups.google.com/group/watir-general/browse_thread/thread/fb7938775929591b/bb7075ebc5c4ec8f?lnk=gstq=click_no_wait#bb7075ebc5c4ec8f

 I call the element like so,
 ie.link(:href, downloadURL.to_s).click_no_wait

 The element is defined as so,
 a id=download_btn class=buttonEnable onmouseout= onmouseover=
 onclick=MarkDownloadFunction(some identifier) href=/path/to/
 zipfile.zipDownload/a

 the onclick DownloadFunction just sets the class to an enable/disable
 button to make it look like the button has been pressed with a new
 image from CSS.

 I found another thread about troubleshooting the click_no_wait here,

 http://groups.google.com/group/watir-general/browse_thread/thread/222b2bf7df33644/5d4e4f0890d75b7c?lnk=gstq=click_no_wait#5d4e4f0890d75b7c

 The patch for 1.6.5 doesn't seem to apply to me since I am using a
 different version of Ruby.  I tried editing the watir/
 page_container.rb file as explained in the previous thread's link to
 Jarmo's post, but  the console just sits there.  I get no feedback
 after running the command generated in the click_no_wait text file.

 Ever better, if I open up google in IRB and call click, click_no_wait
 on buttons, they work just fine, every time!  Maybe there is something
 unique to this website that is stopping click_no_wait somehow, but I
 am out of ideas.

 My system,
 XP SP2
 Ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32]
 Watir 1.6.5

 Thanks for taking the time to read through my post.

 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com




-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] facing issue with clicking buttons

2010-07-26 Thread Raveendran P
Hi Praveen,

 Have you tried these possibilities ?

*canvas_frame.div(:class, 'J-Zh-I J-J5-Ji Bq L3').flash*
*
canvas_frame.div(:id, ':
15m
').flash
canvas_frame.div(:id, ':
15m
').flash



*



On Fri, Jul 23, 2010 at 1:32 PM, praveen kumar praveen454gr...@gmail.comwrote:

 Hi John,

 I have tried with div, but unable to click on button. Following is the
 code:

 require 'watir'
 require 'test/unit'
 require 'win32ole'
 class TC_article_example  Test::Unit::TestCase

   def test_data
 $ie = Watir::IE.new
 $ie.goto(http://mail.google.com/mail/?ui=html;)
 #Define the excel file
 excel= WIN32OLE::new(excel.Application)
 wrkbook=excel.Workbooks.Open(C:\\test.xls)
 wrksheet = wrkbook.worksheets(1)
 wrksheet.select

 #read the data from excel file
 rows = 2
 $username=wrksheet.cells(rows,A) ['text']
 #puts $field
 $password=wrksheet.cells(rows,B) ['text']
 $ie.text_field(:name,Email).set($username)
 $ie.text_field(:id,Passwd).set($password)
 $ie.button(:id, 'signIn' ).click
 #browser.show_frames
 # We need the iframe with ID 'canvas_frame'.  Store it in a var.
 #$ie.goto(http://mail.google.com/mail/?ui=html;)
 canvas_frame = $ie.frame(:id, 'canvas_frame')
 # Get the current user's email address.  We'll be sending email to it.
 my_address = $username
 mail_subject = 'Hello Watir world!'
 mail_body_text = 'Hi.'
 canvas_frame.span(:text, 'Compose Mail').click # Compose new mail
 canvas_frame.text_field(:name, 'to').set(my_address)
 canvas_frame.text_field(:name, 'subject').set(mail_subject)
 mail_body_frame = canvas_frame.frame(:index, 1)
 mail_body_frame.document.body.setproperty('innerText', mail_body_text)
 #$ie.goto(http://mail.google.com/mail/?ui=html;)
   *  canvas_frame.div(:text, 'Send').click# Send the message I am
 facing problem here to click on Send button. It has no attributes like type,
 value*
 #canvas_frame.link(:text, 'Sent Mail').click # Browse to sent mail
 page
 #assert(canvas_frame.contains_text('Hello Watir world!'))
 #canvas_frame.link(:text, 'Inbox').click # Return to the inbox
 page
 $ie.link(:href,'https://mail.google.com/mail/?logouthl=en').click
 $ie.close
 #rows=rows+1
   end
 end

 I have also tried with the attribute id, but that is also not working.

 Please help me and let me know if require any details.

 Praveen


 On Thu, Jul 22, 2010 at 10:23 PM, John Fitisoff jfitis...@yahoo.comwrote:

 Try treating it as a div rather than a button?

 --
 *From:* praveen kumar praveen454gr...@gmail.com
 *To:* watir-general@googlegroups.com
 *Sent:* Thu, July 22, 2010 5:42:59 AM
 *Subject:* [wtr-general] facing issue with clicking buttons

 Hi All,

 I am trying to automate the gmail by clicking on the compose mail and
 entering to address , subject and body content. I am facing problem in
 clicking the Send button. The button has following HTML elements

 *div tabindex=1 class=J-Zh-I J-J5-Ji Bq L3 id=:15m role=button
 style=-moz-user-select: none;bSend/b/div
 *
 I have tried with following script

 *canvas_frame.button(:text, 'Send').click *

 canvas_frame is the  variable in which the frame is stored.

 I am confusing because there is no type attribute. It has role attribute
 i.e role=button.

 Please help me in going forward...

 Thanks,
 Praveen

 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com

  --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com


  --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com




-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] click_no_wait() is not working

2010-07-26 Thread Raveendran P
Hi Soori,


http://raveendran.wordpress.com/2010/06/08/watir-click_no_wait-for-checkbox/If
your_ruby_version != 1.8.6-26_patch level 111
   URL --
http://raveendran.wordpress.com/2010/06/08/watir-click_no_wait-for-checkbox/
   Please install the recommended version to fix the issue
else
   Please update with OS and Ruby version details
end

Thanks


On Thu, Jul 22, 2010 at 12:24 PM, Soori sure...@gmail.com wrote:

 All,

 I am trying to click a link which will ask a confirmation pop-up with
 OK and Cancel option. I am using the following code and I am not
 getting the pop-up while executing the script.

 require 'test/unit'
 require 'rubygems'
 require 'win32ole'
 require 'watir'
 include Watir
 require 'watir/contrib/enabled_popup'
 def jsClick( a, button, user_input=nil)
  waitTime=30
  hwnd = $ie.enabled_popup(waitTime)
if (hwnd)
  w = WinClicker.new
  if ( user_input )
puts(if = user input)
w.setTextValueForFileNameField(hwnd, #{user_input})
end
sleep 3
w.clickWindowsButton_hwnd(hwnd, #{button})
w=nil
  end
  end
  $ie=IE.new
  $ie.speed= :fast
  begin
  $ie.link(:text, 'Publish').click_no_wait()
  jsClick( $ie, OK)
  puts Test Passed
  rescue = e
eaData.puts e.to_s
  end

 but,, am getting the popup if i use  $ie.link(:text, 'Publish').click
 instead .

 I know that i have done a silly mistake. Can anyone please point me
 out ?

 Thanks
 Soori

 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com




-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] counting headers

2011-06-27 Thread Raveendran P
Hi Anne,

I have no idea how Watir can do this...


But i can give the ruby solution to you


Solution:

1. Collect the entire HTML of the page -- @text=@ie.html
2. Search the text h2 in that sting  -- @text.scan(h2).length


Example


a=Raveendran --  h2Test1/h2h2test2/h2
COUNT= a.scan(h2).length


Thanks
Raveendran P


On Mon, Jun 27, 2011 at 11:03 PM, Anne annemordk...@gmail.com wrote:

 I need to be able to get a count of the number of h2 headers on a
 page.
 I can determine if a specific header exists by doing
 @browser.h2(:text, Abc).exists?

 but everything I've tried to get a count of the number of headers
 gives me the following error --
 wrong number of arguments 0 for 1

 I've tried
 @browser.h2.find_all
 @browser.h2.count
 @browser.h2.length
 @browser.h2.all.size

 I even tried @browser.html.scan(:html, h2).size but it returned 0
 and I know there are at least 5 h2 headers on the page...

 html for a typical h2 header looks like this --
 h2Customer Service/h2

 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.comhttp://groups.google.com/group/watir-general%0awatir-general+unsubscr...@googlegroups.com




-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Entering XML in textarea

2011-08-03 Thread Raveendran P
Hi,

Try thi


#*puts doc* = retruns the text
So Pelase convert doc into String

*doc=doc.to_s*

puts doc.class = String (The next line works only the inoput is String or
Fixnum.)

*$browser.text_field(:id, NewAEPGrid_ctl02_CoDFBox2).set(doc)  *

Now it should work .. Let me update here




On Tue, Aug 2, 2011 at 9:26 PM, Trevor ti_ma...@btopenworld.com wrote:

 watir version = 1.9.2
 ruby version = 1.8.7

 Hi,
 I need to read XML from a document and put it into a textarea.
 I use REXML to read the file, but when I try to dump this into the
 textarea I get an error and the field shows [object]

 eg
file = File.new( C:/canoe1.xml )
doc = Document.new file
 #   puts doc
$browser.text_field(:id, NewAEPGrid_ctl02_CoDFBox2).set(doc)

 If I uncomment the puts doc, I can see that the XML is being read
 into doc.

 If I change the .set(doc) to e.g. .set(test) then the word test is
 written OK into the field with no error.

 The error I see is:
 NoMethodError: undefined method `value' for UNDEFINED ... /
 :REXML::Document
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.9.1/lib/watir/
 input_elements.rb:382:in `method_missing'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.9.1/lib/watir/
 input_elements.rb:382:in `set'
C:/WATIR/CanoeETVScheduler/xml_test.rb:29:in `test01_NewAEP'

 Is what I am trying to do actually possible or do I need to
 investigate other options (the only similar post I found seemed to
 suggest using cut'n'paste from an editor)

 Thanks

 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.comhttp://groups.google.com/group/watir-general%0awatir-general+unsubscr...@googlegroups.com




-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Unable to click the link (anchor and span)and use xpath in ruby script

2011-09-07 Thread Raveendran P
Hi Hari,

Have your tried

ff.link(:id, 'cwc_menu_local:ROOT.Find a Request-anchor').exist?

and

ff.link(:id, 'cwc_menu_local:ROOT.Find a Request-anchor').click

and

ff.link(:id, 'cwc_menu_local:ROOT.Find a
Request-anchor').fire_event(onlclick)


Thanks
Ravi P



On Wed, Sep 7, 2011 at 11:19 AM, Hari harisankarec...@gmail.com wrote:

 I'm trying toclick a link the aanchor tags from
 the html shown below.
  I'm running firewatir on Windows Xp and have the
 jssh plugin installed.


 li onkeydown=return webFXTreeHandler.keydown(this, event)
 class=navTreeLeaf id=cwc_menu_local:ROOT.Find a Request
 onclick=webFXTreeHandler.toggleDIV(this);
 a onblur=webFXTreeHandler.blur(this);
 onfocus=webFXTreeHandler.focus(this);
 id=cwc_menu_local:ROOT.Find a Request-anchor
 onclick=var stat=webFXTreeHandler.select(this);
 if(!stat)return stat;;
 ondblclick=webFXTreeHandler.selectOpen(this);
  target=detail href=/smweb/cwc/nav.menu?name=navStartamp;id=ROOT
 %2FFind%20a%20Request
 span class=cwc_navMenuLabelFind a Request/span/a/li

 my code is as below and click the link

 ff.link(:text, 'Find a Request').click

 ff.link(:xpath, 'html/body/div[2]/ul/li').click

 ff.link(:xpath, 'html/body/div[2]/ul/li[4]/a[1]/span').click

 ff.link(:xpath, //a[@id=cwc_menu_local:ROOT.Find a
 Request]/).click

 however the output of the text fails with the error:

  Unable to locate element, using :xpath, //a[@id=\\\cwc_menu
 _local:ROOT.Find a Request\\\]/
 input (Watir::Exception::UnknownObjectException
 )
from C:/Ruby187/lib/ruby/gems/1.8/gems/firewatir-1.9.3/lib/
 firewatir/
 element.rb:1081:in `click'

 tell me were i have to make correction so that i can click a link

 id=cwc_menu_local:ROOT.Find a Request-anchor
 onclick=var stat=webFXTreeHandler.select(this);

 tell me to write a ruby script by using this HTML tag

 Xpath i got using fire bug is
 ff.link(:xpath, 'html/body/div[2]/ul/li[4]/a[1]/span').click

 Anyone know where i've gone wrong , please correct me to rectify the
 error soon

 Thanks in advance

 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.comhttp://groups.google.com/group/watir-general%0awatir-general+unsubscr...@googlegroups.com




-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] text file data delimited by ; append to web text_field

2011-09-07 Thread Raveendran P
Hi,

Please try this solution

ie = Watir::IE.start(http://www.test.com;)

file = File.open(c:/test.txt, r)
lines = file.readlines


1st_value_1st_row=lines[0].split[0]
2nd_value_1st_row=lines[0].split[1]
1st_value_2nd_row=lines[1].split[0]
2nd_value_2nd_row=lines[1].split[1]


You can use it in watir like

ie.text_field(:name, subsets_.Name_).value = 2nd_value_1st_row


Thanks
Raveendran P




On Wed, Sep 7, 2011 at 9:02 AM, byung jinuacad...@gmail.com wrote:

 Below is the code I use to append data in a local text file into the
 text_field on the web page.

 How should I change the code below in order to append the second value
 in the text file delimited by ; in another text_field on the web
 page??

 now.. the test.txt file has the below values:

 test1
 test2
 ...

 New test.txt file will have the values,

 test1; 2nd_test1
 test2; 2nd_test2

 I wish 2nd_test1, 2nd_test2 values appended to the 2nd text_field

 text_field(:name, subsets_.Name2_)

 on the web.

 Could anyone please tell me how I should update the code below in
 order to realize that?

 Thank you so much.

 -

 require 'watir'

 ie = Watir::IE.start(http://www.test.com;)

 file = File.open(c:/test.txt, r)
 lines = file.readlines()

 0.upto(lines.length - 1) {|j|

 $Guide = lines[j]

 ie.text_field(:name, subsets_.Name_).value = $Guide

 ie.button(:alt, Save).click

 }

 file.close()
 lines.clear()

 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.comhttp://groups.google.com/group/watir-general%0awatir-general+unsubscr...@googlegroups.com




-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] watir-webdriver unable to detect firefox

2011-10-18 Thread Raveendran P
Hi ,

It seems like 'ffi' library not installed properly.

1. Open Command prompt
2. gem install ffi
3. Run the script again

HElp -- http://rubygems.org/gems/ffi

If still it throws any error then

4uninstall watir-webdriver
5install watir-webdriver

Thanks


On Tue, Oct 18, 2011 at 11:22 AM, tester pavan247...@gmail.com wrote:

 hi

 i am using ruby 1.8.6
 and gems
  watir (1.6.7, 1.5.6)
 watir-webdriver (0.1.7)

 and i tried to execute domo program
  require 'watir-webdriver'

  browser = Watir::Browser.new :firefox
  browser.goto http://google.com;
  browser.text_field(:name = 'q').set(WebDriver rocks!)
  browser.button(:name = 'btnG').click
  puts browser.url
  browser.close
 getting an error

 c:/Ruby1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
 `gem_original_require': no such file to load -- ffi (LoadError)
from
 c:/Ruby1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
 `require'
from c:/Ruby1/lib/ruby/gems/1.8/gems/childprocess-0.1.4/lib/
 childprocess/windows.rb:1
from c:/Ruby1/lib/ruby/gems/1.8/gems/childprocess-0.1.4/lib/
 childprocess.rb:79:in `close_on_exec'
from c:/Ruby1/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.1/lib/
 selenium/webdriver/firefox/socket_lock.rb:58:in `can_lock?'
from c:/Ruby1/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.1/lib/
 selenium/webdriver/firefox/socket_lock.rb:43:in `lock'
from c:/Ruby1/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.1/lib/
 selenium/webdriver/firefox/socket_lock.rb:29:in `locked'
from c:/Ruby1/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.1/lib/
 selenium/webdriver/firefox/launcher.rb:32:in `launch'
from c:/Ruby1/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.1/lib/
 selenium/webdriver/firefox/bridge.rb:21:in `initialize'
from c:/Ruby1/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.1/lib/
 selenium/webdriver/common/driver.rb:38:in `new'
from c:/Ruby1/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.1/lib/
 selenium/webdriver/common/driver.rb:38:in `for'
from c:/Ruby1/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.1/lib/
 selenium/webdriver.rb:51:in `for'
from
 c:/Ruby1/lib/ruby/gems/1.8/gems/watir-webdriver-0.1.7/lib/watir-
 webdriver/browser.rb:34:in `initialize'
from test.rb:5:in `new'

 any body know about this issue

 please resolve

 Thanks
 Pavan

 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.comhttp://groups.google.com/group/watir-general%0awatir-general+unsubscr...@googlegroups.com




-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Cannot fill nested text_field in one form

2011-10-18 Thread Raveendran P
Hi,

I have navigated the website provided by you.

The Working Code for Google Chrome

ie=Watir::Browser.new :chrome
ie.goto(http://contour.com/users/;)
ie.link(:id,'dd1').click (To Click Sigin In Drop Box)
ie.text_field(:id,'user_email').set(jazzezr...@gmail.com)
ie.text_field(:id,'user_password').set(testing)



But in IE --

When I Click Sign-In -- the drop down not appears. Instead of that its
navigating to http://contour.com/users/#

Also that page contains some Script issues. So please discuss with Dev's to
fix the Script issues before proceeding with IE


Thanks


On Tue, Oct 18, 2011 at 6:24 AM, get relic...@msn.com wrote:

 Hey guys,

 I am realatively new to Watir. I have a simple project to fill up the
 user sign-up sheet. However, my code only filled the first part of the
 form, the user name, and then a javascipt fired up, and then it just
 exist without filling up the rest. It exit with out any error message.

 please help.
 Thank you guys!!

 here is my code:

 def FormFillUp (ie)

  ie.text_field(:id,user_display_name).set(SignUpRobot)

  ie.text_field(:id,user_email).set(signupro...@msn.com)

  ie.text_field(:id,user_password).set(1234567)
 end

 and here is website i am trying to test. http://contour.com/users/
 new

 and attached the section of the form from page source code:

  form accept-charset=UTF-8 action=/users class=new_user
 id=new_user method=postdiv style=margin:0;padding:
 0;display:inlineinput name=utf8 type=hidden value=#x2713; /
 input name=authenticity_token type=hidden
 value=TAYnWYYFKOCppQsikHwRlVNq3dYuNL03SYePmixMcUU= //div
div class=form_fields clearfix
  div class=form_field
input data-suggestion=Username id=user_display_name
 name=user[display_name] size=30 type=text /
div class=promptcontour.com/users/span
 class=display_nameyou/span/div
  /div
  div class=form_field
input data-suggestion=Email address id=user_email
 name=user[email] size=30 type=text /
div class=promptKeep it valid./div
  /div
  div class=form_field
input data-suggestion=Password id=user_password
 name=user[password] size=30 type=password /
div class=promptBe sneaky. At least 6 characters./div
  /div
/div
input id=user_password_confirmation
 name=user[password_confirmation] type=hidden /
input id=user_submit name=commit type=submit value=Get
 Started › /
 /form

 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.comhttp://groups.google.com/group/watir-general%0awatir-general+unsubscr...@googlegroups.com




-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Re: Do Watir scripts run in selenium

2013-02-21 Thread Raveendran P
Umesh,

I am summarizing the answers here

Selenium-webdriver supports -- Ruby,Java,C#,Puthon,PHP .. etc

Watir-webdriver supports -- Ruby

Watir-webdriver --  It is simply helping to automate the web application
using selenium-webdriver with User friendly methods(text_field, checkbox,
radio, etc..) and any manual QA can learn/adopt quickly.

So Learning ruby is going to help you in future.

Thanks



On Thu, Feb 21, 2013 at 6:38 PM, umeshkhan...@gmail.com wrote:

 Hi,
 I mean to ask will learning ruby language helps us to do scripting in
 selenium.


 Thanks  regards in advance
   M.umeshkhanna

 On Saturday, February 16, 2013 3:27:31 PM UTC+5:30, umeshk...@gmail.comwrote:

 Hi,

   I like watir scripting may i know will these scripts work on the
 Selenium web driver.  Or will ruby scripts work on the selenium.

  --
 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.com

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] Re: rescue in rbuf_fill': Timeout::Error

2013-11-23 Thread Raveendran P
Hi,

Based on my exp, It may occurs in 3 diff condition

1. Internet limit crossed
2. Connection interrupt between test server and browser.
3. Memory allocation issue


Solution : Get a help from System Admin to debug this issue. Nothing is
required in code level(If u r very good in Ruby memory allocation code then
u can handle it in better way )

Thanks


On Sat, Nov 23, 2013 at 4:11 PM, Ragavan Ambighananthan 
eelam.raga...@gmail.com wrote:

 looks like your browser crashed or closed by 'some other way' before you
 close it in your teardown because this exception happens when you are doing
 @browser.close

 gems/watir-webdriver-0.6.2/lib/watir-webdriver/browser.rb:135:in `close'


 i have seen this during parallel execution in the same box or sometimes 
 browser get closed due to some other reasons.


 On Tuesday, November 12, 2013 10:08:04 PM UTC, Royce King wrote:

 I have an issue with my watir tests.  I am in the process of migrating to
 a new firewall, and when behind my old firewall the tests work as designed.
  But when I move my test server behind my new firewall I get the following
 error.

 /var/lib/jenkins/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb:146:in
  `rescue in rbuf_fill': Timeout::Error (Timeout::Error)
  from 
 /var/lib/jenkins/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb:140:in
  `rbuf_fill'
  from 
 /var/lib/jenkins/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb:122:in
  `readuntil'
  from 
 /var/lib/jenkins/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb:132:in
  `readline'
  from 
 /var/lib/jenkins/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:2562:in
  `read_status_line'
  from 
 /var/lib/jenkins/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:2551:in
  `read_new'
  from 
 /var/lib/jenkins/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1319:in
  `block in transport_request'
  from 
 /var/lib/jenkins/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1316:in
  `catch'
  from 
 /var/lib/jenkins/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1316:in
  `transport_request'
  from 
 /var/lib/jenkins/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1293:in
  `request'
  from 
 /var/lib/jenkins/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1286:in
  `block in request'
  from 
 /var/lib/jenkins/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:745:in
  `start'
  from 
 /var/lib/jenkins/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1284:in
  `request'
  from 
 /var/lib/jenkins/workspace/watir-test/vendor/bundle/ruby/1.9.1/gems/selenium-webdriver-2.29.0/lib/selenium/webdriver/remote/http/default.rb:83:in
  `response_for'
  from 
 /var/lib/jenkins/workspace/watir-test/vendor/bundle/ruby/1.9.1/gems/selenium-webdriver-2.29.0/lib/selenium/webdriver/remote/http/default.rb:39:in
  `request'
  from 
 /var/lib/jenkins/workspace/watir-test/vendor/bundle/ruby/1.9.1/gems/selenium-webdriver-2.29.0/lib/selenium/webdriver/remote/http/common.rb:40:in
  `call'
  from 
 /var/lib/jenkins/workspace/watir-test/vendor/bundle/ruby/1.9.1/gems/selenium-webdriver-2.29.0/lib/selenium/webdriver/remote/bridge.rb:615:in
  `raw_execute'
  from 
 /var/lib/jenkins/workspace/watir-test/vendor/bundle/ruby/1.9.1/gems/selenium-webdriver-2.29.0/lib/selenium/webdriver/remote/bridge.rb:593:in
  `execute'
  from 
 /var/lib/jenkins/workspace/watir-test/vendor/bundle/ruby/1.9.1/gems/selenium-webdriver-2.29.0/lib/selenium/webdriver/remote/bridge.rb:189:in
  `quit'
  from 
 /var/lib/jenkins/workspace/watir-test/vendor/bundle/ruby/1.9.1/gems/selenium-webdriver-2.29.0/lib/selenium/webdriver/chrome/bridge.rb:48:in
  `quit'
  from 
 /var/lib/jenkins/workspace/watir-test/vendor/bundle/ruby/1.9.1/gems/selenium-webdriver-2.29.0/lib/selenium/webdriver/common/driver.rb:168:in
  `quit'
  from 
 /var/lib/jenkins/workspace/watir-test/vendor/bundle/ruby/1.9.1/gems/watir-webdriver-0.6.2/lib/watir-webdriver/browser.rb:135:in
  `close'
  from taxes2012login.rb:149:in `after_suite'
  from /var/lib/jenkins/workspace/watir-test/minitest_runner.rb:26:in 
 `_run_suite'
  from 
 /var/lib/jenkins/workspace/watir-test/vendor/bundle/ruby/1.9.1/gems/minitest-4.6.1/lib/minitest/unit.rb:886:in
  `block in _run_suites'
  from 
 /var/lib/jenkins/workspace/watir-test/vendor/bundle/ruby/1.9.1/gems/minitest-4.6.1/lib/minitest/unit.rb:886:in
  `map'
  from 
 /var/lib/jenkins/workspace/watir-test/vendor/bundle/ruby/1.9.1/gems/minitest-4.6.1/lib/minitest/unit.rb:886:in
  `_run_suites'
  from /var/lib/jenkins/workspace/watir-test/minitest_runner.rb:15:in 
 `_run_suites'
  from 
 /var/lib/jenkins/workspace/watir-test/vendor/bundle/ruby/1.9.1/gems/minitest-4.6.1/lib/minitest/unit.rb:856:in
  `_run_anything'
  from 
 /var/lib/jenkins/workspace/watir-test/vendor/bundle/ruby/1.9.1/gems/minitest-4.6.1/lib/minitest/unit.rb:1063:in
  `run_tests'
  

Re: [wtr-general] Iteration with data from excel

2014-03-21 Thread Raveendran P
Hi,

  Please review  CURF for your requirement --
http://raveendran.wordpress.com/2010/08/05/curf/



   - Demo Video - http://bit.ly/j_cuRF




On Thu, Mar 20, 2014 at 11:27 AM, akshaya vivek akshayavi...@gmail.comwrote:

 Hi
 I am new to ruby cucumber and watir
 How to run a scenario in watir many times with data from excel?
 There are 2 web pages which takes data from excel
 Each time it iterates it must take data from next row in excel
 And it must start and close the browser for each iteration.
 Please Help!!!

 --
 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.com

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Clicking an empty Div with Watir

2014-03-21 Thread Raveendran P
Hi,

  add -- sleep 10 after

browser.element(:class, 'loginTwitter').click

I hope it will solve your problem


On Wed, Mar 19, 2014 at 11:36 PM, Oscar Rieken bis...@gmail.com wrote:

 http://watirwebdriver.com/browser-popups/


 On Wed, Mar 19, 2014 at 1:57 PM, Elad Shalom e...@devaffair.com wrote:

 Thanks, for your help.  I was told to quit that one and do a different
 POC.
 Should be very simple, but again - doesn't work.

 This should login to a website with Twitter.

 browser = Watir::Browser.start 'http://www.12mass.com/'
 browser.link(:class, 'priceLogin').click
 sleep 2
 browser.element(:class, 'loginTwitter').click
 browser.window.last.use do
 browser.text_field(:id, 'username_or_email').set 'name'
 browser.text_field(:id, 'password').set 'pass'

 browser.button(:id, 'allow').click
 end


 I get to a point where a new window opens, but I can't reach it and fill
 the credentials...

 --
 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.com

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


  --
 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.com

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] How to call a function writen in ruby in an excel spreadsheet

2014-03-21 Thread Raveendran P
Hi,

  Please the ruby methods eval , send eta

And the third way is to use the eval method:
1
2
eval s.length #= 6
eval s.include? 'hi' #=true



On Fri, Jan 24, 2014 at 4:51 PM, nandish.shett...@gmail.com wrote:

 hi,
I have a ruby file with the code mentioned below,
   require 'watir-webdriver'
 require 'rspec/expectations'
 require 'spreadsheet'
 Spreadsheet.client_encoding = 'UTF-8'
 book = Spreadsheet::Workbook.new
 book = Spreadsheet.open 'path to my excel'


 @browser = Watir::Browser.new :firefox
 @browser.goto m https://main.airwatchdev.com/y url

 def textbox(obj_name, obj_value)
   @browser.text_field(:id = obj_name).set(obj_value)
 end

 i know, how to read an excel spreadsheet but when i use that and try to
 call the definition textbox from the excel sheet nothing happens. I just
 want to know if this is possible. Let me know in case more information is
 needed.

 --
 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.com

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] 2 buttons in same frame having different behavior

2014-06-18 Thread Raveendran P
Hi,

  Can you please share the screenshot , Ruby code and HTML code for the
same to debug the issue.


For now:

   1. Can you please try to focus the approve button before click

browser.button(:text,'Approve').when_present.focus
browser.button(:text,'Approve').when_present.click


On Thu, Jun 12, 2014 at 12:21 PM, MinYi minyi.y...@xynapse-asia.com wrote:

 Hi,

 I'm developing watir script using watir-webdriver and browser is firefox
 In the same frame I have 2 buttons which are 'Deny' and 'Approve', when
 developing the script, when my action require the 'Deny' button to be
 clicked,
 the sript run correctly without any problem. However, when the 'Approve'
 button need to be clicked, I'm using the same command but it can't worked.
 Any ideas regarding on how can I solve it..? Both the buttons in the same
 frame and same div. The command I using are the same as well except for the
 id value to identify the button.
 Thanks..

 --
 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.com

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Unable to handle dialog box in IE

2014-06-18 Thread Raveendran P
Hi Minyi,

   Please share the current code then only we can atlaest
understand the problem to help.

For now:

browser.alert.ok -- will solve your problem

1


On Fri, Jun 13, 2014 at 5:37 PM, Joe Fleck joeflec...@gmail.com wrote:

 MinYi,

 You could try using sikuli (sikuli.org) it can be called within your
 script to close those dialog boxes.

 I did find these two solutions:


 http://grokbase.com/t/gg/watir-general/1282yx6mvs/wtr-general-re-handling-a-windows-file-upload-dialog-box

 http://watirwebdriver.com/javascript-dialogs/

 Joe



 On Fri, Jun 13, 2014 at 12:02 AM, MinYi minyi.y...@xynapse-asia.com
 wrote:

 Hi, I'm developing the watir script and facing some difficulties when
 comes to the
 dialog box handling in IE. I managed to do that in Firefox with the
 watir-webdriver library.
 However, I'm unable to handle/click the pop out dialog box in IE with the
 watir library. The dialog box is a confirmation
 dialog box with 'OK' and 'Cancel' button. I have tried on several method
 but still it is not working.I also go through the related topic in the
 forum and yet non of the solution is working for me
 Any ideas on how to handle to handle the pop out dialog box in IE with
 watir library..? Thanks and appreciate :)

 --
 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.com

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


  --
 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.com

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.