Re: [wtr-general] Re: Unable to locate checkbox element ?

2010-08-13 Thread Željko Filipin
On Fri, Aug 13, 2010 at 5:59 AM, Chan Nguyen atbl1...@gmail.com wrote:
 So this problem is only with frame?

Yes.

 Is there any other element that we have to do this kind of nested call ?

No.

 What's the easiest way to access an element?
 What's the most usable way to access an element?

Make sure element has ID attribute.

Željko
--
watir.com - community manager
watirpodcast.com - host
testingpodcast.com - audio podcasts on software testing. all of them
vidipodkast.com - pričamo o hardveru, softveru i časopisu Vidi

-- 
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] Running bat files in command prompt

2010-08-13 Thread Željko Filipin
On Fri, Aug 13, 2010 at 7:11 AM, cyril.gonsal...@mastek.com 
cyril.gonsal...@mastek.com wrote:
 But i need to keep open all 4 command prompts with bat files running
 in it.

How is this related to Watir?

Željko
--
watir.com - community manager
watirpodcast.com - host
testingpodcast.com - audio podcasts on software testing. all of them
vidipodkast.com - pričamo o hardveru, softveru i časopisu Vidi

-- 
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] Running bat files in command prompt

2010-08-13 Thread Cyril A. Gonsalves
Once I run all bat files, I need to test a web application i.e. In order to run 
the web application I need to keep alive batch services.

Hence I want to automate the test case where I can run these bat file 
automatically (thru Script).

Is there any way to run multiple bat file at the same time and keep running 
unless closed manually


From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On 
Behalf Of Željko Filipin
Sent: Friday, August 13, 2010 1:04 PM
To: watir-general@googlegroups.com
Subject: Re: [wtr-general] Running bat files in command prompt

On Fri, Aug 13, 2010 at 7:11 AM, 
cyril.gonsal...@mastek.commailto:cyril.gonsal...@mastek.com 
cyril.gonsal...@mastek.commailto:cyril.gonsal...@mastek.com wrote:
 But i need to keep open all 4 command prompts with bat files running
 in it.

How is this related to Watir?

Željko
--
watir.comhttp://watir.com - community manager
watirpodcast.comhttp://watirpodcast.com - host
testingpodcast.comhttp://testingpodcast.com - audio podcasts on software 
testing. all of them
vidipodkast.comhttp://vidipodkast.com - pričamo o hardveru, softveru i 
časopisu Vidi
--
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



MASTEK LTD.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~

-- 
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] Running bat files in command prompt

2010-08-13 Thread Željko Filipin
2010/8/13 Cyril A. Gonsalves cyril.gonsal...@mastek.com
 Is there any way to run multiple bat file at the same time and keep
running unless closed manually

You could use threads. I think you will get more replies at a Ruby list,
because this is not Watir specific.

Željko

-- 
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] Running bat files in command prompt

2010-08-13 Thread Cyril A. Gonsalves
Thanks for the update bro… ☺
MASTEK LTD.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~

-- 
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] Running bat files in command prompt

2010-08-13 Thread chethan sarathy
You can run all the scripts form a bat file, to run multiple bat files one by 
one you can usefollowing command in bat file
start /SEPARATE bat1.filestart /SEPARATE bat2.file
This will make sure a independent command prompt will be running,  from this 
you can run other ruby scripts or Watir Suite .
Thanks,Chethan

--- On Fri, 13/8/10, Cyril A. Gonsalves cyril.gonsal...@mastek.com wrote:

From: Cyril A. Gonsalves cyril.gonsal...@mastek.com
Subject: RE: [wtr-general] Running bat files in command prompt
To: watir-general@googlegroups.com watir-general@googlegroups.com
Date: Friday, 13 August, 2010, 1:33 PM




 
 






 



Thanks for the update bro… J 






MASTEK LTD.

In the US, we're called MAJESCOMASTEK



~~

Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete t
his e-mail from desktop and server.

~~

 





-- 

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



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


[wtr-general] `assert_exists': Unable to locate element

2010-08-13 Thread cyril.gonsal...@mastek.com
Hi,

I am writing script for a testcase below.

1. Open Link abc.htm
2. Click link chat me on abc.htm
3. Enter text in the testfield on the newly opened page
4. Click submit button

While written script for above like this


# Reuired libraries

  require 'watir'

  site_text = http://localhost:8080/XXX/a.htm;
  ie = Watir::IE.new
  ie.goto(site_text)
  ie.link(:text,Chat me).click

ie.text_field(:name,entry).set abc # text field on the opened link


I get below error messge :

`assert_exists': Unable to locate element, using :name,
entry (Watir::Exception::UnknownObjectException)
from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:
288:in `enabled?'
from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:
60:in `assert_enabled'
from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/
input_elements.rb:327:in `set'
from D:/Ruby/rbC1.tmp:15
Complete(1)


The problem could be because of the new browser window.

if yes then how to access objects e.g textfield in the browser i.e.
opened by clicking the link in another browser

-- 
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] `assert_exists': Unable to locate element

2010-08-13 Thread Željko Filipin
On Fri, Aug 13, 2010 at 1:21 PM, cyril.gonsal...@mastek.com 
cyril.gonsal...@mastek.com wrote:
 if yes then how to access objects e.g textfield in the browser i.e.
 opened by clicking the link in another browser

You want to attach to another browser window?

http://wiki.openqa.org/display/WTR/New+Browser+Windows

Željko
--
watir.com - community manager
watirpodcast.com - host
testingpodcast.com - audio podcasts on software testing. all of them
vidipodkast.com - pričamo o hardveru, softveru i časopisu Vidi

-- 
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] `assert_exists': Unable to locate element

2010-08-13 Thread Cyril A. Gonsalves
Gr8 work dude……

Really helpful
MASTEK LTD.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~

-- 
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] `assert_exists': Unable to locate element

2010-08-13 Thread arihan sinha
you have to attach that new windows, do the activities and then close that
and come back to your original browser.

in my ruby+watir framework I use the below if any new window opens where i
need to do anything

if attach_url(/url in reg exp/) then

enter_text_into_text_field_text(Enter the value in text field, entry,
abc)

# do what ever you want to do in this new window
# then close this new window
end

the attach_url and enter_text_into_text_field are called from testbase.rb

def enter_text_into_text_field_text(title, name, value)
  startAction title, type ' + value + ' in ' + name + ' text field

  if no_fatal_error then
   begin
  $ie.text_field(:name, name).set(value)
  logPass
  rescue = e
   handleFail e
  end
  end
 end

def attach_url(urlName)
  startAction opening new IE instance, urlName.to_s
  if no_fatal_error then
  begin
  new_ie = Watir::IE.attach(:url, urlName)
  new_ie.set_fast_speed
  @stored_ie = $ie
  $ie = new_ie
  logPass
  return true
  rescue = e
  @fatal_error=true
   handleFail e
  end
  end

  return false
end

On Fri, Aug 13, 2010 at 12:21 PM, cyril.gonsal...@mastek.com 
cyril.gonsal...@mastek.com wrote:

 Hi,

 I am writing script for a testcase below.

 1. Open Link abc.htm
 2. Click link chat me on abc.htm
 3. Enter text in the testfield on the newly opened page
 4. Click submit button

 While written script for above like this


 # Reuired libraries

  require 'watir'

  site_text = http://localhost:8080/XXX/a.htm;
  ie = Watir::IE.new
  ie.goto(site_text)
  ie.link(:text,Chat me).click

 ie.text_field(:name,entry).set abc # text field on the opened link


 I get below error messge :

 `assert_exists': Unable to locate element, using :name,
 entry (Watir::Exception::UnknownObjectException)
from
 C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:
 288:in `enabled?'
from
 C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:
 60:in `assert_enabled'
from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/
 input_elements.rb:327:in `set'
from D:/Ruby/rbC1.tmp:15
 Complete(1)


 The problem could be because of the new browser window.

 if yes then how to access objects e.g textfield in the browser i.e.
 opened by clicking the link in another browser

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


RE: [wtr-general] `assert_exists': Unable to locate element

2010-08-13 Thread Cyril A. Gonsalves
Thanks a lot for useful info...
MASTEK LTD.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~

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


[wtr-general] Re: Running bat files in command prompt

2010-08-13 Thread joedio
Cyril,

Suggest you create one bat file that calls the other bat files, then
launch that bat file instead of  the four individually.
Use DOS to do the DOS specific tasks.

Joe

On Aug 12, 11:11 pm, cyril.gonsal...@mastek.com
cyril.gonsal...@mastek.com wrote:
 Hi,

 I want to run four bat file namely,

 a.bat
 b.bat
 c.bat and d.bat in  command prompt.


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


[wtr-general] Re: Unable to locate checkbox element ?

2010-08-13 Thread Chan Nguyen
Hi Željko again,
Thanks for your clear answer ;) ! I will keep this in mind Only
Frame ^_^ !

On Aug 13, 12:33 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 On Fri, Aug 13, 2010 at 5:59 AM, Chan Nguyen atbl1...@gmail.com wrote:
  So this problem is only with frame?

 Yes.

  Is there any other element that we have to do this kind of nested call ?

 No.

  What's the easiest way to access an element?
  What's the most usable way to access an element?

 Make sure element has ID attribute.

 Željko
 --
 watir.com - community manager
 watirpodcast.com - host
 testingpodcast.com - audio podcasts on software testing. all of them
 vidipodkast.com - pričamo o hardveru, softveru i časopisu Vidi

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


[wtr-general] Re: Unable to locate checkbox element ?

2010-08-13 Thread Chan Nguyen
Yesterday, when I was home. I got it run without problem under FF
( Ubuntu Linux ). Now I'm at work, I used ie. and it gave me errors :
(. Any idea?

frame = browser.frame( :id, Main_Body )
frame.checkbox( :id, cblModules_0 ).clear
frame.checkbox( :id, cblModules_1 ).clear
frame.checkbox( :id, cblModules_2 ).clear
frame.checkbox( :id, cblModules_3 ).clear
---

C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/frame.rb:52:in
`method_missing': document (WIN32OLERuntimeError)
OLE error code:80070005 in Unknown
  Access is denied.


HRESULT error code:0x80020009
  Exception occurred.
from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/
frame.rb:52:in `document'
from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/
container.rb:800:in `locate_input_element'
from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/
input_elements.rb:487:in `locate'
from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/
element.rb:53:in `assert_exists'
from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/
element.rb:288:in `enabled?'
from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/
element.rb:60:in `assert_enabled'
from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/
input_elements.rb:556:in `set'
from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/
input_elements.rb:568:in `clear'
from C:/NetBeans Project/RubyApplication2/lib/main.rb:16

On Aug 13, 7:00 am, Chan Nguyen atbl1...@gmail.com wrote:
 Hi Željko again,
 Thanks for your clear answer ;) ! I will keep this in mind Only
 Frame ^_^ !

 On Aug 13, 12:33 am, Željko Filipin zeljko.fili...@wa-research.ch
 wrote:

  On Fri, Aug 13, 2010 at 5:59 AM, Chan Nguyen atbl1...@gmail.com wrote:
   So this problem is only with frame?

  Yes.

   Is there any other element that we have to do this kind of nested call ?

  No.

   What's the easiest way to access an element?
   What's the most usable way to access an element?

  Make sure element has ID attribute.

  Željko
  --
  watir.com - community manager
  watirpodcast.com - host
  testingpodcast.com - audio podcasts on software testing. all of them
  vidipodkast.com - pričamo o hardveru, softveru i časopisu Vidi

-- 
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] Re: Unable to locate checkbox element ?

2010-08-13 Thread Željko Filipin
On Fri, Aug 13, 2010 at 4:11 PM, Chan Nguyen atbl1...@gmail.com wrote:
  Access is denied.

Watir can not access contents of a frame. Please search this group for this
error message, I am sure there is a solution. If you can not find it, let me
know.

Željko

-- 
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] Re: Unable to locate checkbox element ?

2010-08-13 Thread Chan Nguyen
Thanks again Željko. Simple enough, add Trusted Sites under Internet
Explore Option ;) ! Sweet


On Fri, Aug 13, 2010 at 7:17 AM, Željko Filipin 
zeljko.fili...@wa-research.ch wrote:

 On Fri, Aug 13, 2010 at 4:11 PM, Chan Nguyen atbl1...@gmail.com wrote:
   Access is denied.

 Watir can not access contents of a frame. Please search this group for this
 error message, I am sure there is a solution. If you can not find it, let me
 know.

 Željko

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


[wtr-general] How I can do double click on a calendar?

2010-08-13 Thread carmen3lia
Hi,

I am testing a Web Application, that includes a Calendar, and I want
to do double on it, to open a popup window, but I cant, I tried the
following

browser.div(:xpath, /html/body/div/div/div[2]/div[2]/div[2]/div/div/
div[2]/div/div[2]/div/div/div[2]/div/div[27]/table/tbody/tr/
td[2]).fire_event(ondblclick)


any idea?

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


[wtr-general] How to verify a result in a pop-up message dialog?

2010-08-13 Thread Chan Nguyen
Hi everyone,
My situation is that I fill in a form then click search button. The
result box will pop up with number of searches found. I want to verify
the result in this textbox but I really have no idea how? Anyone could
share me a hint?

Thanks,

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


[wtr-general] Soap with Savon gem

2010-08-13 Thread jtk
For a project at work I need the ability to submit transactions using
soap calls. I tried searching the group and the only posts I could
find were for soap4r. From what I've read soap4r does not work well
and I found a gem called savon. Supposedly it's easier and more
lightweight than soap4r but I can't find any basic examples of simply
submitting a soap request. All the examples I do find are more
complicated than this where the writers are trying to do something
quite more involved.

Can anyone here show me a simple request of submitting a soap request
using savon?

We are using basic auth no ssl and my soap envelope has no header.

Here is the call I am making

soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/
envelope/ xmlns:ser=http://service.webservice.com/;
   soapenv:Header/
   soapenv:Body
  ser:getAvailableInstallDates
 !--Optional:--
 fromDate2010-08-13/fromDate
 !--Optional:--
 toDate2010-08-23/toDate
 !--Optional:--
 serviceAddress
!--Optional:--
address1?/address1
!--Optional:--
address2?/address2
!--Optional:--
city?/city
!--Optional:--
county?/county
!--Optional:--
stateCA/state
!--Optional:--
zip93230/zip
!--Optional:--
zipFour/zipFour
 /serviceAddress
 !--Optional:--
 salesChannelDIRECT/salesChannel
  /ser:getAvailableInstallDates
   /soapenv:Body
/soapenv:Envelope


All I want to do is submit this to an endpoint and capture the
response. If someone could show me a simple example I would greatly
appreciate it.

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


[wtr-general] Re: How to verify a result in a pop-up message dialog?

2010-08-13 Thread Chan Nguyen
Hi Arihan,
It is a Windows PopUp. When I manually run it, I use FF to locate the
text inside that Windows; however, when I check w/
contains_text( Some Search Results ), it failed :( . Can you show me
how to handle this situation?
Thanks,

On Aug 13, 9:03 am, arihan sinha arihan.si...@gmail.com wrote:
 is this a browser popup or window popup.

 if its browser pop up then its straight forward but if its window popup
 then  you have to handle it differently

 Cheers
 A

 On Fri, Aug 13, 2010 at 4:45 PM, Chan Nguyen atbl1...@gmail.com wrote:
  Hi everyone,
  My situation is that I fill in a form then click search button. The
  result box will pop up with number of searches found. I want to verify
  the result in this textbox but I really have no idea how? Anyone could
  share me a hint?

  Thanks,

  --
  Before posting, please readhttp://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.com


[wtr-general] Re: How to access a href link which is a java script?

2010-08-13 Thread Chuck van der Linden
Just offhand, I'd wager there was more than one link on the page with
class=sWhiteLink , so you'd needed to have added an index value, or
another 'how' in order to uniquely identify the link.

On Aug 12, 1:56 pm, Chan Nguyen atbl1...@gmail.com wrote:
 Thanks a lot order,
 I got it worked when I tried :
 ie.link( :text, Customize Home Page ).

 On Aug 12, 1:48 pm, orde ohil...@gmail.com wrote:



  Try:

  ie.link(:class, sWhiteLink).fire_event('onclick')

  For 
  reference:http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/Element.html#M000557

  Hope it helps.

  orde

  On Aug 12, 1:43 pm, Chan Nguyen atbl1...@gmail.com wrote:

   Hi,
   I used Firebug to locate the element, it's a text link. And here is
   element's HTML:
   a onclick=parent.document.getElementById('Main_Body').src =
   'customizehomepage.aspx?hidMLS=BARI';return false; href=javascript:
   \; class=sWhiteLinkCustomize Home Page/a
   I tried :
   ie.link( :class, sWhiteLink ).click
   but Watir does not regconize it? Any idea?

   Thanks,

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


[wtr-general] Re: How to verify the browser contains text in another page?

2010-08-13 Thread Chan Nguyen
Hi orde again,

I tried to use your second method. Unfortunately, I always got not
exists when I tested the link

a href=javascript:\\ onclick=window.open('http://
media.rapmlsstg.com/help/10.01.01/', 'newWin',
'menubar=yes,toolbar=yes,resizable=yes,directories=no,scrollbars=yes,status=yes');
return false; class=ImageLink
id=Module_3__ctl1__ctl0_hprOnlineHelpimg border=0
align=absmiddle style=margin-right: 5px; src=http://
media.rapmlsstg.com/rapmlsimages/onlinehelp.gif
id=Module_3__ctl1__ctl0_imgOnlineHelpOnline Help/a

The code that I use :
# Since it's nested in a frame
1. main_frame.link( :id, Module_3__ctl1__ctl0_hprOnlineHelp ).click
# Check the link to see if it exists?
if browser.link( :id, Module_3__ctl1__ctl0_hprOnlineHelp ).exists?
or
if browser.link( :href, http://media.rapmlsstg.com/help/
10.01.01/ ).exists?

For your first solution, I'm a little vague about assuming you've
attached
to the new page ? How can I do this?

Thanks,

On Aug 12, 2:09 pm, Chan Nguyen atbl1...@gmail.com wrote:
 Hi orde again, thanks a lot for your super sweet and quick response
 ^_^ ! KISS !

 On Aug 12, 2:03 pm, orde ohil...@gmail.com wrote:

  1. Verify text in a new opened page?

  browser.text.include?(string_to_verify)  # assuming you've attached
  to the new page

   2. Verify some condition in current page?

  Just an example: browser.link(:id, 'id').exists?

  And you would probably want to put that into a begin/rescue/end
  statement to handle a failure case gracefully:

  begin
    # assert/verify something (e.g. browser.text.include?
  (string_to_verify))
  rescue
    # log the failure if it fails.
  end

  For some info on exception handling, check 
  outhttp://ruby-doc.org/docs/ProgrammingRuby/html/tut_exceptions.html(or
  your favorite .rb reference doc).

  Hope it helps.

  orde

  On Aug 12, 1:22 pm, Chan Nguyen atbl1...@gmail.com wrote:

   Hi everyone,
   I encountered a problem that when clicking on a link, it will open a
   separate page. In other words, I will have 2 pages, so if I want to
   verify the web is doing correctly? What should I do?
   1. Verify text in a new opened page?
   2. Verify some condition in current page?
   For both 1  2, I don't really know how to start? Can anyone share me
   an example?
   Thanks,

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


[wtr-general] Re: Problem finding a way to access a link

2010-08-13 Thread Chuck van der Linden
OK so what you have is a link with no text or anything of it's own,
just a 'naked' link, cohabitating in a cell with some text.

At the manual UI level it works because the objects all superimpose
and when someone positions the mouse over the text, they end up
clicking the link

Watir wise, what's worked for me with stuff like this is to identify
it much the same way I described it above..  The unique identifier
here is the text (I'd presume)..  So lets identify the outer
container, namely the cell, by that text, and then click the link
that's inside that cell, which we can identify 'loosely' since it's
the only link there.

browser.cell(:text, Sources).link(:href, /javascript/).click

I'm matching the link on just a portion of the href, which should work
given it's the only link inside that cell.  Since we're confined to
the cell, I don't have to worry about it matching up with a bazillion
other javascript powered links in the app.

  You could also use Index, but I've a habit of trying to avoid using
index since that's an area of contention between firewatir and watir

Now, if there's more than one cell on the page with the text 'Sources'
inside it, this is a bust and you have to find some other path to
uniquely identify the 'container' elements that are holding the link
you want.

On Aug 12, 11:14 am, Melissa meisa...@gmail.com wrote:
 I'm trying to get my Watir test to click the link below, and I'm
 coming up empty. I've tried accessing it by text, href, title, cell,
 table, link index and anything else I could think of. It's such messy
 code - I'm starting to wonder if it's even possible to get at it.

 Any thoughts on what I can use to click the link? Thanks for any tips!

 td nowrap title=Business Objects To Query width=100 height=20
 bgcolor=#efefe7 align=center style=font-size:90%;border-
 right:#94a6ce 1px solid;padding-right:4px;border-top:#94a6ce 1px
 solid;padding-left:4px;border-left:#94a6ce 1px solid;width:
 100px;color:black;border-bottom:#FF9900 1px solid;font-
 family:tahoma;height:20px;background-color:#efefe7;text-
 align:center;text-decoration:none;font face=tahoma color=black
 a
 href=javascript:document.aspnetForm.__ctl00_TemplateBody_DesignShell1_ctl0 
 0_ctl00_SectionTabStrip_State__.value='1';__doPostBack('ctl00$TemplateBody
 $DesignShell1$ctl00$ctl00$SectionTabStrip','1')
 font color=blackSources/font/a/font
 /td

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


[wtr-general] Re: Watir on Windows, how is it done anymore?

2010-08-13 Thread Jarmo Pertman
What about giving access to more people to the repository so it's
possible to make changes there without waiting for months? And what
about not trying to support everything and everyone by not wanting to
make any core changes to the code? That's what i don't understand.
Rails and RSpec guys are deprecating and deleting and changing their
API-s or core features. Even Ruby changes. Why not Watir? It's
possible to point out in the changelog or releasenotes that hey
people, this is the way how Watir will work from now and if you have
built something upon it, well then you'd have to make some changes
here and there. If these changes make code better, make API better,
add more and better functionality then why not?

There are a lot of things which could be deleted/changed or
improved...

At least this is my opinion which has been formed during the time i've
tried to make things better with Watir...

Jarmo

On Aug 11, 10:51 pm, Charley Baker charley.ba...@gmail.com wrote:
 I need to get a decent windows machine which I haven't had for a while. I'm
 basically limited to mac only at this point with a horribly limping WinXP
 image. I'm trying to get something doable in the long term, but aside from
 being otherwise occupied, this is causing a slowdown in how much I can test
 and make improvements. If anyone has suggestions, I'd love to hear them. :)

 Cheers,

 Charley Baker
 Lead Developer, Watir,http://watir.com

 On Mon, Aug 9, 2010 at 3:45 PM, Željko Filipin 



 zeljko.fili...@wa-research.ch wrote:
  On Mon, Aug 9, 2010 at 6:10 PM, Ethan notet...@gmail.com wrote:
   Did you test no_wait stuff?

  No, I do not use no_wait stuff.

  Željko

  --
  Before posting, please readhttp://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...@goog 
  legroups.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] Soap with Savon gem

2010-08-13 Thread Charley Baker
Definitely not a Watir question, more of related to Savon or general ruby
lists. That being said, I've done soap service testing with Soap4R, which
isn't a great library and had considered moving to Savon. It's been a long
time since I looked at it, but hacked together a quick example given the
Savon docs and found this as well:
http://blog.nofail.de/2010/01/savon-handsoap-shootout/

Seems pretty trivial to do, here's my quick example from a free soap
webservice:

require 'rubygems'
require 'savon'
require 'pp'

client = Savon::Client.new 
http://geocoder.us/dist/eg/clients/GeoCoderPHP.wsdl;

response = client.geocode_address do |soapy|
  soapy.body = {:location = '1600 Pennsylvania Av, Washington, DC'}
end
pp response.to_hash



I don't know if that helps, but should give you some start. Savon docs are
pretty good, took 10 minutes from installing the gem to finding a free web
service to writing this. If you see the response back, it's hash within hash
within hash, etc. I'm assuming the same is for input so in your example
something like setting the body to (pseudocode):

{:from_date = 'whatever', :to_date = 'sometime later', :service_address =
{:address1 = '123'}} etc etc

should theoretically work.

 Once again, this is unsupported hacky code, you're much better off asking
elsewhere. :) Might make for a good blog post though, hrrrm... :)


Charley Baker
Lead Developer, Watir, http://watir.com


On Fri, Aug 13, 2010 at 9:57 AM, jtk jeff.kr...@gmail.com wrote:

 For a project at work I need the ability to submit transactions using
 soap calls. I tried searching the group and the only posts I could
 find were for soap4r. From what I've read soap4r does not work well
 and I found a gem called savon. Supposedly it's easier and more
 lightweight than soap4r but I can't find any basic examples of simply
 submitting a soap request. All the examples I do find are more
 complicated than this where the writers are trying to do something
 quite more involved.

 Can anyone here show me a simple request of submitting a soap request
 using savon?

 We are using basic auth no ssl and my soap envelope has no header.

 Here is the call I am making

 soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/
 envelope/ xmlns:ser=http://service.webservice.com/;
   soapenv:Header/
   soapenv:Body
  ser:getAvailableInstallDates
 !--Optional:--
 fromDate2010-08-13/fromDate
 !--Optional:--
 toDate2010-08-23/toDate
 !--Optional:--
 serviceAddress
!--Optional:--
address1?/address1
!--Optional:--
address2?/address2
!--Optional:--
city?/city
!--Optional:--
county?/county
!--Optional:--
stateCA/state
!--Optional:--
zip93230/zip
!--Optional:--
zipFour/zipFour
 /serviceAddress
 !--Optional:--
 salesChannelDIRECT/salesChannel
  /ser:getAvailableInstallDates
   /soapenv:Body
 /soapenv:Envelope


 All I want to do is submit this to an endpoint and capture the
 response. If someone could show me a simple example I would greatly
 appreciate it.

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


Re: [wtr-general] Re: Watir on Windows, how is it done anymore?

2010-08-13 Thread Charley Baker
Those are good points, we should move this conversation into Watir-dev. I'd
love to see more general people on IRC, that goes doubly for anyone who's
working on Watir code. I find it much easier to discuss things there at
times, this being one. :)

Cheers,

Charley Baker
Lead Developer, Watir, http://watir.com


On Fri, Aug 13, 2010 at 11:03 AM, Jarmo Pertman jarm...@gmail.com wrote:

 What about giving access to more people to the repository so it's
 possible to make changes there without waiting for months? And what
 about not trying to support everything and everyone by not wanting to
 make any core changes to the code? That's what i don't understand.
 Rails and RSpec guys are deprecating and deleting and changing their
 API-s or core features. Even Ruby changes. Why not Watir? It's
 possible to point out in the changelog or releasenotes that hey
 people, this is the way how Watir will work from now and if you have
 built something upon it, well then you'd have to make some changes
 here and there. If these changes make code better, make API better,
 add more and better functionality then why not?

 There are a lot of things which could be deleted/changed or
 improved...

 At least this is my opinion which has been formed during the time i've
 tried to make things better with Watir...

 Jarmo

 On Aug 11, 10:51 pm, Charley Baker charley.ba...@gmail.com wrote:
  I need to get a decent windows machine which I haven't had for a while.
 I'm
  basically limited to mac only at this point with a horribly limping WinXP
  image. I'm trying to get something doable in the long term, but aside
 from
  being otherwise occupied, this is causing a slowdown in how much I can
 test
  and make improvements. If anyone has suggestions, I'd love to hear them.
 :)
 
  Cheers,
 
  Charley Baker
  Lead Developer, Watir,http://watir.com
 
  On Mon, Aug 9, 2010 at 3:45 PM, Željko Filipin 
 
 
 
  zeljko.fili...@wa-research.ch wrote:
   On Mon, Aug 9, 2010 at 6:10 PM, Ethan notet...@gmail.com wrote:
Did you test no_wait stuff?
 
   No, I do not use no_wait stuff.
 
   Željko
 
   --
   Before posting, please readhttp://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
 watir-general%2bunsubscr...@goog legroups.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.com


[wtr-general] Re: How to verify the browser contains text in another page?

2010-08-13 Thread orde
For info on attaching, see http://wiki.openqa.org/display/WTR/Pop+Ups

If you're trying to verify the existence of something in an iframe,
you'll need to specify the frame.  Example: browser.frame(id,
'id').whatever(:id, 'id').exists?

On Aug 13, 9:16 am, Chan Nguyen atbl1...@gmail.com wrote:
 Hi orde again,

 I tried to use your second method. Unfortunately, I always got not
 exists when I tested the link

 a href=javascript:\\ onclick=window.open('http://
 media.rapmlsstg.com/help/10.01.01/', 'newWin',
 'menubar=yes,toolbar=yes,resizable=yes,directories=no,scrollbars=yes,status 
 =yes');
 return false; class=ImageLink
 id=Module_3__ctl1__ctl0_hprOnlineHelpimg border=0
 align=absmiddle style=margin-right: 5px; src=http://
 media.rapmlsstg.com/rapmlsimages/onlinehelp.gif
 id=Module_3__ctl1__ctl0_imgOnlineHelpOnline Help/a

 The code that I use :
 # Since it's nested in a frame
 1. main_frame.link( :id, Module_3__ctl1__ctl0_hprOnlineHelp ).click
 # Check the link to see if it exists?
 if browser.link( :id, Module_3__ctl1__ctl0_hprOnlineHelp ).exists?
 or
 if browser.link( :href, http://media.rapmlsstg.com/help/
 10.01.01/ ).exists?

 For your first solution, I'm a little vague about assuming you've
 attached
 to the new page ? How can I do this?

 Thanks,

 On Aug 12, 2:09 pm, Chan Nguyen atbl1...@gmail.com wrote:



  Hi orde again, thanks a lot for your super sweet and quick response
  ^_^ ! KISS !

  On Aug 12, 2:03 pm, orde ohil...@gmail.com wrote:

   1. Verify text in a new opened page?

   browser.text.include?(string_to_verify)  # assuming you've attached
   to the new page

2. Verify some condition in current page?

   Just an example: browser.link(:id, 'id').exists?

   And you would probably want to put that into a begin/rescue/end
   statement to handle a failure case gracefully:

   begin
     # assert/verify something (e.g. browser.text.include?
   (string_to_verify))
   rescue
     # log the failure if it fails.
   end

   For some info on exception handling, check 
   outhttp://ruby-doc.org/docs/ProgrammingRuby/html/tut_exceptions.html(or
   your favorite .rb reference doc).

   Hope it helps.

   orde

   On Aug 12, 1:22 pm, Chan Nguyen atbl1...@gmail.com wrote:

Hi everyone,
I encountered a problem that when clicking on a link, it will open a
separate page. In other words, I will have 2 pages, so if I want to
verify the web is doing correctly? What should I do?
1. Verify text in a new opened page?
2. Verify some condition in current page?
For both 1  2, I don't really know how to start? Can anyone share me
an example?
Thanks,

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


[wtr-general] Re: Unable to locate checkbox element ?

2010-08-13 Thread Chuck van der Linden
Frames are evil.

Most web 2.0 developers I know try to avoid them like the plague.  I
cannot share with you (without lots of censoring) what my web-devs say
about people that still use frames. (well except for the dev from
Russia, he just said 'they should be taken out and shot'.. (Stalin
would be proud to see his influence persists still to this day in that
culture JOKE!!), so no censoring needed there)

you should ridicule your developers for being so old school, and not
keeping up with modern web design and development.  (grin)

well ok maybe not ridicule, but I'd still give them some good natured
ribbing about how their outdated design is making it difficult for you
to test their stuff.

On Aug 13, 7:00 am, Chan Nguyen atbl1...@gmail.com wrote:
 Hi Željko again,
 Thanks for your clear answer ;) ! I will keep this in mind Only
 Frame ^_^ !

 On Aug 13, 12:33 am, Željko Filipin zeljko.fili...@wa-research.ch
 wrote:



  On Fri, Aug 13, 2010 at 5:59 AM, Chan Nguyen atbl1...@gmail.com wrote:
   So this problem is only with frame?

  Yes.

   Is there any other element that we have to do this kind of nested call ?

  No.

   What's the easiest way to access an element?
   What's the most usable way to access an element?

  Make sure element has ID attribute.

  Željko
  --
  watir.com - community manager
  watirpodcast.com - host
  testingpodcast.com - audio podcasts on software testing. all of them
  vidipodkast.com - pričamo o hardveru, softveru i časopisu Vidi

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


[wtr-general] How I can clear a list (ul)

2010-08-13 Thread carmen3lia
I need to clear the elements all elements in a list, UL, I have the
following code

  b.div(:id, x-auto-8963).ul(:id, x-auto-8964).clear

but it does not work

This the HTML code and  i want to delete all the li elements

ul class=token-input-list-facebook x-component id=x-auto-648
li class=token-input-token-facebookp title=emailuser name/
pspanx/span/li
li class=token-input-token-facebookp title=emailuser name/
pspanx/span/li
li class=token-input-token-facebookp title=emailuser name/
pspanx/span/li
li class=token-input-token-facebookp title=emailuser name/
pspanx/span/li
li class=token-input-token-facebookp title=emailuser name/
pspanx/span/li
li class=token-input-token-facebookp title=emailuser name/
pspanx/span/li
li class=token-input-token-facebookp title=emailuser name/
pspanx/span/li
li class=token-input-token-facebookp title=emailuser name/
pspanx/span/li
li class=token-input-input-token-facebookinput type=text
tabindex=1 class=gwt-SuggestBox style=outline: medium none;
id=suggestion_box/li/ul

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


[wtr-general] Re: How to verify a result in a pop-up message dialog?

2010-08-13 Thread Super Kevy
You may consider the AutoIT extension for reading the content of the
popup window

On Aug 13, 11:06 am, Chan Nguyen atbl1...@gmail.com wrote:
 Hi Arihan,
 It is a Windows PopUp. When I manually run it, I use FF to locate the
 text inside that Windows; however, when I check w/
 contains_text( Some Search Results ), it failed :( . Can you show me
 how to handle this situation?
 Thanks,

 On Aug 13, 9:03 am, arihan sinha arihan.si...@gmail.com wrote:



  is this a browser popup or window popup.

  if its browser pop up then its straight forward but if its window popup
  then  you have to handle it differently

  Cheers
  A

  On Fri, Aug 13, 2010 at 4:45 PM, Chan Nguyen atbl1...@gmail.com wrote:
   Hi everyone,
   My situation is that I fill in a form then click search button. The
   result box will pop up with number of searches found. I want to verify
   the result in this textbox but I really have no idea how? Anyone could
   share me a hint?

   Thanks,

   --
   Before posting, please readhttp://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...@goog­legroups.com-
Hide quoted text -

 - Show quoted text -

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


[wtr-general] Re: Unable to locate checkbox element ?

2010-08-13 Thread Chan Nguyen
Hi Linden,
Thanks a lot for your comment. To be honest, I'm still an intern here.
And I have 0 experiences with Web Development so I can't kick my
developers' asses yet ^_^. I'm evaluating Watir right now( just for
myself ) since my boss want me to learn Manual Testing first.
Although my company only have about 5% for automation tests, they
still don't want to move to TDD and Testing Automation yet, so I'm by
myself. Luckily, by doing research, I learn a lot about Software
Design and Development, especially finding out my sweet baby Ruby.
Just start to learn Ruby for a week but I love Ruby just like I love C+
+.

On Aug 13, 11:25 am, Chuck van der Linden sqa...@gmail.com wrote:
 Frames are evil.

 Most web 2.0 developers I know try to avoid them like the plague.  I
 cannot share with you (without lots of censoring) what my web-devs say
 about people that still use frames. (well except for the dev from
 Russia, he just said 'they should be taken out and shot'.. (Stalin
 would be proud to see his influence persists still to this day in that
 culture JOKE!!), so no censoring needed there)

 you should ridicule your developers for being so old school, and not
 keeping up with modern web design and development.  (grin)

 well ok maybe not ridicule, but I'd still give them some good natured
 ribbing about how their outdated design is making it difficult for you
 to test their stuff.

 On Aug 13, 7:00 am, Chan Nguyen atbl1...@gmail.com wrote:

  Hi Željko again,
  Thanks for your clear answer ;) ! I will keep this in mind Only
  Frame ^_^ !

  On Aug 13, 12:33 am, Željko Filipin zeljko.fili...@wa-research.ch
  wrote:

   On Fri, Aug 13, 2010 at 5:59 AM, Chan Nguyen atbl1...@gmail.com wrote:
So this problem is only with frame?

   Yes.

Is there any other element that we have to do this kind of nested 
call ?

   No.

What's the easiest way to access an element?
What's the most usable way to access an element?

   Make sure element has ID attribute.

   Željko
   --
   watir.com - community manager
   watirpodcast.com - host
   testingpodcast.com - audio podcasts on software testing. all of them
   vidipodkast.com - pričamo o hardveru, softveru i časopisu Vidi

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


[wtr-general] Re: How to verify a result in a pop-up message dialog?

2010-08-13 Thread Chan Nguyen
Hi Kevy,
Is there any other way to work around this problem without touching
AutoIt?

On Aug 13, 12:16 pm, Super Kevy kpe...@scholarshipamerica.org wrote:
 You may consider the AutoIT extension for reading the content of the
 popup window

 On Aug 13, 11:06 am, Chan Nguyen atbl1...@gmail.com wrote:

  Hi Arihan,
  It is a Windows PopUp. When I manually run it, I use FF to locate the
  text inside that Windows; however, when I check w/
  contains_text( Some Search Results ), it failed :( . Can you show me
  how to handle this situation?
  Thanks,

  On Aug 13, 9:03 am, arihan sinha arihan.si...@gmail.com wrote:

   is this a browser popup or window popup.

   if its browser pop up then its straight forward but if its window popup
   then  you have to handle it differently

   Cheers
   A

   On Fri, Aug 13, 2010 at 4:45 PM, Chan Nguyen atbl1...@gmail.com wrote:
Hi everyone,
My situation is that I fill in a form then click search button. The
result box will pop up with number of searches found. I want to verify
the result in this textbox but I really have no idea how? Anyone could
share me a hint?

Thanks,

--
Before posting, please readhttp://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...@goog­legroups.com-
 Hide quoted text -

  - Show quoted text -

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


[wtr-general] Does anybody have experience to run ruby watir script in a cgi script?

2010-08-13 Thread WatirJoy
Hi,

I tried to execute a few line of ruby watir scripts in a cgi script:

#!/ruby/bin/ruby -w
require 'cgi'
require 'stringio'
require 'rubygems'
require 'mysql'
require 'watir'
require 'time'
cgi = CGI.new

serverIpValue = cgi.params['serverIp'][0]
mailIpValue = cgi.params['mailIp'][0]
mediaDrive = cgi.params['mediaDrive'][0]
retension=cgi.params['retension'][0]

puts Content-type: text/html
puts html
puts body
puts serverIpValue:#{serverIpValue}p
puts mailIpValue:#{mailIpValue}p
puts mediaDrive:#{mediaDrive}p
puts retension:#{retension}p
puts Start initial system state check and system
configuration...p
begin_time=Time.now
ie = Watir::IE.new
ie.goto #{serverIpValue}
if ie.text.include?(Password:)
puts login in as user adminp
ie.text_field(:name, j_username).set admin
ie.text_field(:name, j_password).set admin
ie.button(:value, Log in).click
puts ie.down_load_timep
end
ie.close if ie
puts Initial account login passedp

puts /body
puts /html

-- 
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] Re: How to verify a result in a pop-up message dialog?

2010-08-13 Thread Charley Baker
Check in the mailing list and the main watir site for the same. First
identify what kind of dialog box you have and then work from there.

hth,
Charley Baker
Lead Developer, Watir, http://watir.com


On Fri, Aug 13, 2010 at 1:49 PM, Chan Nguyen atbl1...@gmail.com wrote:

 Hi Kevy,
 Is there any other way to work around this problem without touching
 AutoIt?

 On Aug 13, 12:16 pm, Super Kevy kpe...@scholarshipamerica.org wrote:
  You may consider the AutoIT extension for reading the content of the
  popup window
 
  On Aug 13, 11:06 am, Chan Nguyen atbl1...@gmail.com wrote:
 
   Hi Arihan,
   It is a Windows PopUp. When I manually run it, I use FF to locate the
   text inside that Windows; however, when I check w/
   contains_text( Some Search Results ), it failed :( . Can you show me
   how to handle this situation?
   Thanks,
 
   On Aug 13, 9:03 am, arihan sinha arihan.si...@gmail.com wrote:
 
is this a browser popup or window popup.
 
if its browser pop up then its straight forward but if its window
 popup
then  you have to handle it differently
 
Cheers
A
 
On Fri, Aug 13, 2010 at 4:45 PM, Chan Nguyen atbl1...@gmail.com
 wrote:
 Hi everyone,
 My situation is that I fill in a form then click search button. The
 result box will pop up with number of searches found. I want to
 verify
 the result in this textbox but I really have no idea how? Anyone
 could
 share me a hint?
 
 Thanks,
 
 --
 Before posting, please readhttp://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
 watir-general%2bunsubscr...@goog­legroups.com- Hide quoted text -
 
   - Show quoted text -

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


[wtr-general] Re: How I can clear a list (ul)

2010-08-13 Thread Chuck van der Linden
First off, what does 'does not work' mean.  what happens? do you get
an error message? if so what is it?

Second, That's an un-ordered list.  it's not settable or clear-able.
The.clear method is for things like INPUT type tags such as checkboxes

Third, The example doesn't match your code attempt..  the code is
looking for a ul with
id=x-auto-8964.   But the sample HTML has
id=x-auto-648  so even if it was possible to use .clear  the code
would fail because the id value in your code doesn't match the id
value in the html

Last,  since an unordered list in html doesn't have any kind of
'clear' function associated with it, I suspect that there is a bunch
of Javascript behind all this that you're not showing us.  The
javascript is probably reacting to events like mouseover and click and
such, on specific elements in the list.  ON the website, when
interacting manually how would you 'clear' items from the list?

And what happens when you 'clear' an item manually?

can you give us a URL to the site with this code on it, so we can have
a better look at what's going on?

On Aug 13, 11:30 am, carmen3lia eliaol...@gmail.com wrote:
 I need to clear the elements all elements in a list, UL, I have the
 following code

   b.div(:id, x-auto-8963).ul(:id, x-auto-8964).clear

 but it does not work

 This the HTML code and  i want to delete all the li elements

 ul class=token-input-list-facebook x-component id=x-auto-648
 li class=token-input-token-facebookp title=emailuser name/
 pspanx/span/li
 li class=token-input-token-facebookp title=emailuser name/
 pspanx/span/li
 li class=token-input-token-facebookp title=emailuser name/
 pspanx/span/li
 li class=token-input-token-facebookp title=emailuser name/
 pspanx/span/li
 li class=token-input-token-facebookp title=emailuser name/
 pspanx/span/li
 li class=token-input-token-facebookp title=emailuser name/
 pspanx/span/li
 li class=token-input-token-facebookp title=emailuser name/
 pspanx/span/li
 li class=token-input-token-facebookp title=emailuser name/
 pspanx/span/li
 li class=token-input-input-token-facebookinput type=text
 tabindex=1 class=gwt-SuggestBox style=outline: medium none;
 id=suggestion_box/li/ul

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


[wtr-general] Re: Check out the Watir Stack Exchange site!

2010-08-13 Thread Chuck van der Linden
Too radical?  I don't know.

I agree something better is needed, google groups is not well suited
to a 'support' type of work, there's no good way to track answered vs
unanswered questions, nor which responses ended up being the best
answer.

Even the MSDN forums that MS has are far better, but I'm not sure if
it would be open to us to create a forum there, nor if doing so would
cause some kind of knee-jerk allergic reaction OMG it's Microsoft
among Mac and Linux users.

I created sample questions, and used up all my votes for all three
types of question.

I wonder if it was just not clear to people HOW to vote for the
example questions?   We had enough people over there, but nobody
voted.  did they not realize what it is they need to do?


On Aug 13, 8:01 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 I am giving up on Watir Stack Exchange site (http://bit.ly/watirse). Nobody
 is voting on the questions. Maybe people are on vacation, or nobody cares.

 I will concentrate on thinking how to move Watir support 
 tohttp://stackoverflow.com/

 One idea I have:

 - create a page at watir.com with instructions how to post a question at
 stackoverflow.com
 - updatehttp://watir.com/support/page to say stackoverflow.com is the
 place for Watir support
 - send warning message at watir-general that it will be read only for a week
 - in that week post to watir-general only links to Watir questions at
 stackoverflow.com
 - see what happens and decide what to do next

 Is it too radical? :)

 Željko

-- 
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] Re: Check out the Watir Stack Exchange site!

2010-08-13 Thread Chan Nguyen
I think Watir should have its own land ( a forum ). I tried both Selenium,
Watin and WebTest, but I'm in love w/ Watir.

On Fri, Aug 13, 2010 at 1:22 PM, Chuck van der Linden sqa...@gmail.comwrote:

 Too radical?  I don't know.

 I agree something better is needed, google groups is not well suited
 to a 'support' type of work, there's no good way to track answered vs
 unanswered questions, nor which responses ended up being the best
 answer.

 Even the MSDN forums that MS has are far better, but I'm not sure if
 it would be open to us to create a forum there, nor if doing so would
 cause some kind of knee-jerk allergic reaction OMG it's Microsoft
 among Mac and Linux users.

 I created sample questions, and used up all my votes for all three
 types of question.

 I wonder if it was just not clear to people HOW to vote for the
 example questions?   We had enough people over there, but nobody
 voted.  did they not realize what it is they need to do?


 On Aug 13, 8:01 am, Željko Filipin zeljko.fili...@wa-research.ch
 wrote:
  I am giving up on Watir Stack Exchange site (http://bit.ly/watirse).
 Nobody
  is voting on the questions. Maybe people are on vacation, or nobody
 cares.
 
  I will concentrate on thinking how to move Watir support tohttp://
 stackoverflow.com/
 
  One idea I have:
 
  - create a page at watir.com with instructions how to post a question at
  stackoverflow.com
  - updatehttp://watir.com/support/page to say stackoverflow.com is the
   place for Watir support
  - send warning message at watir-general that it will be read only for a
 week
  - in that week post to watir-general only links to Watir questions at
  stackoverflow.com
  - see what happens and decide what to do next
 
  Is it too radical? :)
 
  Željko

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


Re: [wtr-general] Re: How I can do double click on a calendar?

2010-08-13 Thread Carmen
Im using the xpath because I dont have the ID but i talked ´to my Manager
who is also a dev and the said me that the event is contained in the
following xpath
html/body/div/div/div[2]/div[2]/div[2]/div/div/div[2]/div/div[2]/div/div/div[2]/div/div[25]/table/tbody/tr/td[2]

2010/8/13 Charley Baker charley.ba...@gmail.com

 Good god, I don't know why you would use an xpath like that, if you even
 have to use xpath. There's a js event tied to something in there, hard to
 tell what it is and where the event is tied to. I'd talk to your devs,
 figure out where the event is occurring and fire it on that container or
 element.


 Charley Baker
 Lead Developer, Watir, http://watir.com


 On Fri, Aug 13, 2010 at 2:35 PM, Carmen eliaol...@gmail.com wrote:

 The problem is that the double click is not doing anything action, but if
 I send a single click, the click is sent.

   b.div(:xpath,
 /html/body/div/div/div[2]/div[2]/div[2]/div/div/div[2]/div/div[2]/div/div/div[2]/div/div[27]/table/tbody/tr/td[2]).fire_event_no_wait(ondblclick)

 See the attachment with the code

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




-- 
Attentamente:
Carmen Elia!!

-- 
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-development] [wtr-general] Re: Check out the Watir Stack Exchange site!

2010-08-13 Thread Alister Scott
I personally don't think what you're proposing is too radical.
If people aren't committed, Stack Exchange won't work.
I personally dislike the number of complex rules, voting and hierarchy
associated with stack exchange stuff. I think it's a bit OTT.
I am happy to support any other options you think will work.

Cheers,
Alister Scott
Brisbane, Australia
Watir Wiki Master: http://watir.com
Blog: http://watirmelon.com
Google: http://www.google.com/profiles/alister.scott
LinkedIn: http://www.linkedin.com/in/alisterscott

On 14/08/2010, at 1:01 AM, Željko Filipin zeljko.fili...@wa-research.ch
wrote:

I am giving up on Watir Stack Exchange site (http://bit.ly/watirse). Nobody
is voting on the questions. Maybe people are on vacation, or nobody cares.

I will concentrate on thinking how to move Watir support to
http://stackoverflow.com/

One idea I have:

- create a page at watir.com with instructions how to post a question at
stackoverflow.com
- update http://watir.com/support/ page to say stackoverflow.com is the
place for Watir support
- send warning message at watir-general that it will be read only for a week
- in that week post to watir-general only links to Watir questions at
stackoverflow.com
- see what happens and decide what to do next

Is it too radical? :)

Željko

___
Wtr-development mailing list
wtr-developm...@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-development

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


[wtr-general] Re: How I can do double click on a calendar?

2010-08-13 Thread Chuck van der Linden
The problem is
 a) it makes for unreadable text code, there's no way to tell what
cell it's clicking etc
 b) next month, will the xpath be the same?

Are you folks using Coolite (EXTJS)   tools?

There's probably a better way to identify the place you are trying to
doubleclick.   possibly by the class of the row or div, and the text
that's inside the cell.

If you were doing this test manually, how would you know where to
click?

On Aug 13, 2:06 pm, Carmen eliaol...@gmail.com wrote:
 Im using the xpath because I dont have the ID but i talked ´to my Manager
 who is also a dev and the said me that the event is contained in the
 following xpath
 html/body/div/div/div[2]/div[2]/div[2]/div/div/div[2]/div/div[2]/div/div/di 
 v[2]/div/div[25]/table/tbody/tr/td[2]

 2010/8/13 Charley Baker charley.ba...@gmail.com





  Good god, I don't know why you would use an xpath like that, if you even
  have to use xpath. There's a js event tied to something in there, hard to
  tell what it is and where the event is tied to. I'd talk to your devs,
  figure out where the event is occurring and fire it on that container or
  element.

  Charley Baker
  Lead Developer, Watir,http://watir.com

  On Fri, Aug 13, 2010 at 2:35 PM, Carmen eliaol...@gmail.com wrote:

  The problem is that the double click is not doing anything action, but if
  I send a single click, the click is sent.

    b.div(:xpath,
  /html/body/div/div/div[2]/div[2]/div[2]/div/div/div[2]/div/div[2]/div/div/d
   iv[2]/div/div[27]/table/tbody/tr/td[2]).fire_event_no_wait(ondblclick)

  See the attachment with the code

  --
  Before posting, please readhttp://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...@goog
   legroups.com

   --
  Before posting, please readhttp://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...@goog 
  legroups.com

 --
 Attentamente:
 Carmen Elia!!

-- 
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] Re: How I can do double click on a calendar?

2010-08-13 Thread Carmen
There is a calendar with several rows, and you can do double click over
the row like in the image attachment.

2010/8/13 Chuck van der Linden sqa...@gmail.com

 The problem is
  a) it makes for unreadable text code, there's no way to tell what
 cell it's clicking etc
  b) next month, will the xpath be the same?

 Are you folks using Coolite (EXTJS)   tools?

 There's probably a better way to identify the place you are trying to
 doubleclick.   possibly by the class of the row or div, and the text
 that's inside the cell.

 If you were doing this test manually, how would you know where to
 click?

 On Aug 13, 2:06 pm, Carmen eliaol...@gmail.com wrote:
  Im using the xpath because I dont have the ID but i talked ´to my Manager
  who is also a dev and the said me that the event is contained in the
  following xpath
 
 html/body/div/div/div[2]/div[2]/div[2]/div/div/div[2]/div/div[2]/div/div/di
 v[2]/div/div[25]/table/tbody/tr/td[2]
 
  2010/8/13 Charley Baker charley.ba...@gmail.com
 
 
 
 
 
   Good god, I don't know why you would use an xpath like that, if you
 even
   have to use xpath. There's a js event tied to something in there, hard
 to
   tell what it is and where the event is tied to. I'd talk to your devs,
   figure out where the event is occurring and fire it on that container
 or
   element.
 
   Charley Baker
   Lead Developer, Watir,http://watir.com
 
   On Fri, Aug 13, 2010 at 2:35 PM, Carmen eliaol...@gmail.com wrote:
 
   The problem is that the double click is not doing anything action, but
 if
   I send a single click, the click is sent.
 
 b.div(:xpath,
  
 /html/body/div/div/div[2]/div[2]/div[2]/div/div/div[2]/div/div[2]/div/div/d
 iv[2]/div/div[27]/table/tbody/tr/td[2]).fire_event_no_wait(ondblclick)
 
   See the attachment with the code
 
   --
   Before posting, please readhttp://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
 watir-general%2bunsubscr...@goog legroups.com
 
--
   Before posting, please readhttp://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
 watir-general%2bunsubscr...@goog legroups.com
 
  --
  Attentamente:
  Carmen Elia!!

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




-- 
Attentamente:
Carmen Elia!!

-- 
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
attachment: calendar.JPG

RE: [wtr-general] Re: Check out the Watir Stack Exchange site!

2010-08-13 Thread Jason Trebilcock
There’s a Watir forum on SQAForums. It has all of six Watir-related threads…it 
might be a interesting destination to switch efforts to.

 

From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On 
Behalf Of Chan Nguyen
Sent: Friday, August 13, 2010 3:26 PM
To: watir-general@googlegroups.com
Subject: Re: [wtr-general] Re: Check out the Watir Stack Exchange site!

 

I think Watir should have its own land ( a forum ). I tried both Selenium, 
Watin and WebTest, but I'm in love w/ Watir. 

On Fri, Aug 13, 2010 at 1:22 PM, Chuck van der Linden sqa...@gmail.com wrote:

Too radical?  I don't know.

I agree something better is needed, google groups is not well suited
to a 'support' type of work, there's no good way to track answered vs
unanswered questions, nor which responses ended up being the best
answer.

Even the MSDN forums that MS has are far better, but I'm not sure if
it would be open to us to create a forum there, nor if doing so would
cause some kind of knee-jerk allergic reaction OMG it's Microsoft
among Mac and Linux users.

I created sample questions, and used up all my votes for all three
types of question.

I wonder if it was just not clear to people HOW to vote for the
example questions?   We had enough people over there, but nobody
voted.  did they not realize what it is they need to do?


On Aug 13, 8:01 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:

 I am giving up on Watir Stack Exchange site (http://bit.ly/watirse). Nobody
 is voting on the questions. Maybe people are on vacation, or nobody cares.


 I will concentrate on thinking how to move Watir support 
 tohttp://stackoverflow.com/


 One idea I have:

 - create a page at watir.com http://watir.com/  with instructions how to 
 post a question at
 stackoverflow.com http://stackoverflow.com/ 

 - updatehttp://watir.com/support/page to say stackoverflow.com 
 http://stackoverflow.com/  is the

 place for Watir support
 - send warning message at watir-general that it will be read only for a week
 - in that week post to watir-general only links to Watir questions at
 stackoverflow.com http://stackoverflow.com/ 
 - see what happens and decide what to do next

 Is it too radical? :)

 Željko

--
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 
mailto:watir-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.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


[wtr-general] Re: Way to clear the browser cache?

2010-08-13 Thread Darryl Brown
Howdy,

See info in the following thread:
http://groups.google.com/group/watir-general/browse_thread/thread/30a68323e906fa9b/61535cb87df9ac6c?lnk=raot

http://rubyforge.org/snippet/detail.php?type=snippetid=26


Regards,
Darryl


On Aug 9, 11:20 am, arihan sinha arihan.si...@gmail.com wrote:
 pls try this.. and I think it would work.. its working ok for me.

 def clear_cache_folder()
 Watir::CookieManager::WatirHelper.deleteSpecialFolderContents(Watir::CookieManager::WatirHelper::COOKIES)
 Watir::CookieManager::WatirHelper.deleteSpecialFolderContents(Watir::CookieManager::WatirHelper::INTERNET_CACHE)
 end

 2010/8/9 Željko Filipin zeljko.fili...@wa-research.ch

  On Sat, Aug 7, 2010 at 8:52 PM, Jeff Fry jeff@gmail.com wrote:
   Hey y'all, does watir have a way to clear the browser cache?

  I do not think Watir can do it (somebody please correct me if I am wrong).
  If I needed to clear the cache, I would just delete all files from browser's
  cache directory (with ruby).

  Željko
  --
  watir.com - community manager
  watirpodcast.com - host
  testingpodcast.com - audio podcasts on software testing. all of them
  vidipodkast.com - pričamo o hardveru, softveru i časopisu Vidi

  --
  Before posting, please readhttp://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.com


[wtr-general] Undefined method `contains_text' using Watir-webdrive

2010-08-13 Thread Chan Nguyen
Hi everyone,
When I used watir with IE under Windows, everything worked fine. But
when I tried with FF under Linux, the complier complained that :

undefined method `contains_text' for #Watir::Frame:0xb749c638
(NoMethodError)

And my code snippet is :
main_frame = browser.frame( :id, Main_Body )
if main_frame.contains_text( Weather )
puts Passed

Is there any significant different between 'watir' and 'watir-
webdriver'? And how can I work around this issue? Any idea?

Thanks,

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


[wtr-general] Re: How to select a item from the dropbox

2010-08-13 Thread sudhir
onchange=javascript:selectcombo_Report('0','ReportTemplate_Buselect',this.form)
class=select-menutoption value=-1 selected=selected- Select
One -/option
option value=DEMO-00908ABC Company/option
option value=DEMO-UK016ABC-GBP/option
option value=00901ABPorts/option
option value=ABSCOMBINEDABS Combined/option

I want to select from the drop box like ABPorts. can you please Guide
Thanks Lot for your help

On Aug 9, 10:06 pm, Chuck van der Linden sqa...@gmail.com wrote:
 If the below does not work, then use the IE Developer Toolbar, or
 Firebug, to have a look at the element to see if it is really an HTML
 select list, or if it is some other kind of control.

 There are often Javascript powered 'section lists' which are enabled
 using other types of objects (often an ordered list) and a lot of
 javascript eventing.   In that case you typically have to use click
 methods on the elements the control is created from, or sometimes fire
 specfic events like 'onmouseover' followed by clicks, in order to
 activate the control.

 There are several existing threads on dealing with those kind of
 controls, which would bear searching for and reading if you find
 yourself in that situation

 On Aug 9, 1:45 am, Željko Filipin zeljko.fili...@wa-research.ch
 wrote:

  On Sun, Aug 8, 2010 at 5:15 PM, sudhir prem...@gmail.com wrote:
   I am trying to select an item from dropbox but could not.

  Take a look:

 http://wiki.openqa.org/display/WTR/Selection+Boxes

  Željko
  --
  watir.com - community manager
  watirpodcast.com - host
  testingpodcast.com - audio podcasts on software testing. all of them
  vidipodkast.com - pričamo o hardveru, softveru i časopisu Vidi

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


[wtr-general] Re: Undefined method `contains_text' using Watir-webdrive

2010-08-13 Thread Chan Nguyen
Great thanks Ethan ;) !

On Aug 13, 8:58 pm, Ethan notet...@gmail.com wrote:
 contains_text is deprecated and omitted from watir-webdriver. 
 seehttp://github.com/jarib/watir-webdriver/issues/closed#issue/7

 On Fri, Aug 13, 2010 at 23:43, Chan Nguyen atbl1...@gmail.com wrote:
  Hi everyone,
  When I used watir with IE under Windows, everything worked fine. But
  when I tried with FF under Linux, the complier complained that :

  undefined method `contains_text' for #Watir::Frame:0xb749c638
  (NoMethodError)

  And my code snippet is :
  main_frame = browser.frame( :id, Main_Body )
  if main_frame.contains_text( Weather )
  puts Passed

  Is there any significant different between 'watir' and 'watir-
  webdriver'? And how can I work around this issue? Any idea?

  Thanks,

  --
  Before posting, please readhttp://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.com


[wtr-general] Re: Undefined method `contains_text' using Watir-webdrive

2010-08-13 Thread Chan Nguyen
:( !
But now I ran into another issue :
undefined method `text' for #Selenium::WebDriver::Driver:
0x..fb749fb58 browser=:firefox (NoMethodError)
Could you give me a 'last' help ^_^?

On Aug 13, 10:24 pm, Chan Nguyen atbl1...@gmail.com wrote:
 Great thanks Ethan ;) !

 On Aug 13, 8:58 pm, Ethan notet...@gmail.com wrote:

  contains_text is deprecated and omitted from watir-webdriver. 
  seehttp://github.com/jarib/watir-webdriver/issues/closed#issue/7

  On Fri, Aug 13, 2010 at 23:43, Chan Nguyen atbl1...@gmail.com wrote:
   Hi everyone,
   When I used watir with IE under Windows, everything worked fine. But
   when I tried with FF under Linux, the complier complained that :

   undefined method `contains_text' for #Watir::Frame:0xb749c638
   (NoMethodError)

   And my code snippet is :
   main_frame = browser.frame( :id, Main_Body )
   if main_frame.contains_text( Weather )
   puts Passed

   Is there any significant different between 'watir' and 'watir-
   webdriver'? And how can I work around this issue? Any idea?

   Thanks,

   --
   Before posting, please readhttp://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.com


[wtr-general] Re: How to select a item from the dropbox

2010-08-13 Thread sudhir
Hi All,
Here is another select list from which I have to select Performance
by Dimension Can you Guide about it.

select name=selectedReportDetailsString size=1
onchange=javascript:submitReportTypes('
%=WebOperation.REPORTTEMPLATE_REPORT_SELECT%'); class=select-
menu180option value=- Select One -##-1## ## || || || 
selected=selected- Select One -/option
option value=Performance by Dimension##1## ## || ##RPTTYP##PERF|| ||
Performance by Dimension/option
option value=Historical Summary##2## ## || ##RPTTYP##PERF|| ||
Historical Summary/option
option value=Index Performance##3## ## || ##RPTTYP##PERF|| ||
Index Performance/option
option value=Security Performance##4## ## || ##RPTTYP##PERF|| ||
Security Performance/option/select


Thanks A Lot for your help

On Aug 14, 9:38 am, sudhir prem...@gmail.com wrote:
 onchange=javascript:selectcombo_Report('0','ReportTemplate_Buselect',this.form)
 class=select-menutoption value=-1 selected=selected- Select
 One -/option
 option value=DEMO-00908ABC Company/option
 option value=DEMO-UK016ABC-GBP/option
 option value=00901ABPorts/option
 option value=ABSCOMBINEDABS Combined/option

 I want to select from the drop box like ABPorts. can you please Guide
 Thanks Lot for your help

 On Aug 9, 10:06 pm, Chuck van der Linden sqa...@gmail.com wrote:

  If the below does not work, then use the IE Developer Toolbar, or
  Firebug, to have a look at the element to see if it is really an HTML
  select list, or if it is some other kind of control.

  There are often Javascript powered 'section lists' which are enabled
  using other types of objects (often an ordered list) and a lot of
  javascript eventing.   In that case you typically have to use click
  methods on the elements the control is created from, or sometimes fire
  specfic events like 'onmouseover' followed by clicks, in order to
  activate the control.

  There are several existing threads on dealing with those kind of
  controls, which would bear searching for and reading if you find
  yourself in that situation

  On Aug 9, 1:45 am, Željko Filipin zeljko.fili...@wa-research.ch
  wrote:

   On Sun, Aug 8, 2010 at 5:15 PM, sudhir prem...@gmail.com wrote:
I am trying to select an item from dropbox but could not.

   Take a look:

  http://wiki.openqa.org/display/WTR/Selection+Boxes

   Željko
   --
   watir.com - community manager
   watirpodcast.com - host
   testingpodcast.com - audio podcasts on software testing. all of them
   vidipodkast.com - pričamo o hardveru, softveru i časopisu Vidi

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


[wtr-general] Differences between Watir, FireWatir, Webdriver ?

2010-08-13 Thread Chan Nguyen
 Hi everyone,
I came across 3 *watir, and I think they're compatible with each
other. My IE script that I wrote broke when using FireWatir and
Webdrive :(. I just want to know what are significant differences
between those three? Thanks !

ps: Why don't people make them become consistent and unique for all
browsers ( IE, FF, Safari... )?

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