Re: [wtr-general] Re: Recent Stack Overflow Questions Tagged Watir

2010-09-07 Thread Željko Filipin
http://stackoverflow.com/questions/3652582/alert-box-in-waitr-webdriver

-- 
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 use Watir::Simple Module

2010-09-07 Thread Ekin Han
Hi all,

Could you kindly tell me how to use Watir::Simple module, does it need to
include first before using?

Another question, I want to select all items from a multi-select_list, I can
not select the item with text for some encoding reasons.

I can not select the item by using value.

Could you tell me how to select all items in the multi-select_list?

Thank you.

Eason

-- 
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] How to use Watir::Simple Module

2010-09-07 Thread Željko Filipin
On Tue, Sep 7, 2010 at 11:26 AM, Ekin Han nbkhic...@gmail.com wrote:
 Could you kindly tell me how to use Watir::Simple module

Why would you like to use it? Watir API is not so complicated. I do not
think it is supported any more.

 I want to select all items from a multi-select_list

Take a look at this:

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

If it does not answer your question, you will have to provide your HTML and
Watir code.

Željko
--
watir.com - community manager
watirpodcast.com - host
testingpodcast.com - audio podcasts on software testing. all of them

-- 
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] How to use Watir::Simple Module

2010-09-07 Thread Ekin Han
Thank you very much.
I just found this module and can not find the example code in API document,
so I ask the first question.

I found the answer though the url :), now it fixes.


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

 On Tue, Sep 7, 2010 at 11:26 AM, Ekin Han nbkhic...@gmail.com wrote:
  Could you kindly tell me how to use Watir::Simple module

 Why would you like to use it? Watir API is not so complicated. I do not
 think it is supported any more.


  I want to select all items from a multi-select_list

 Take a look at this:

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

 If it does not answer your question, you will have to provide your HTML and
 Watir code.

 Željko
 --
 watir.com - community manager
 watirpodcast.com - host
 testingpodcast.com - audio podcasts on software testing. all of them

  --
 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] How to use Watir::Simple Module

2010-09-07 Thread Ekin Han
Hi Željko,

I know I can select each item with text, but now I want to selct each option
by using value.

Can can I get all the value of each option?

Thank you

Eason
2010/9/7 Ekin Han nbkhic...@gmail.com

 Thank you very much.
 I just found this module and can not find the example code in API document,
 so I ask the first question.

 I found the answer though the url :), now it fixes.


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

  On Tue, Sep 7, 2010 at 11:26 AM, Ekin Han nbkhic...@gmail.com wrote:
  Could you kindly tell me how to use Watir::Simple module

 Why would you like to use it? Watir API is not so complicated. I do not
 think it is supported any more.


  I want to select all items from a multi-select_list

 Take a look at this:

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

 If it does not answer your question, you will have to provide your HTML
 and Watir code.

 Željko
 --
 watir.com - community manager
 watirpodcast.com - host
 testingpodcast.com - audio podcasts on software testing. all of them

 --
 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] How to use Watir::Simple Module

2010-09-07 Thread Željko Filipin
On Tue, Sep 7, 2010 at 11:59 AM, Ekin Han nbkhic...@gmail.com wrote:
 I know I can select each item with text, but now I want to selct each
option by using value.

browser.select_list(how, what).select_value(value)

 Can can I get all the value of each option?

Did not understand this.

Ž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] How to use Watir::Simple Module

2010-09-07 Thread Ekin Han
browser.select_list(how, what).select_value(*value*)
I want to get the value of all options,just like below:
option value = 1a/option
option value = 2b/option
option value = 3c/option
option value = 4d/option
I want to get an array it just like [1, 2, 3, 4], in this way i can use[1,
2, 3, 4].each {|i| browser.select_list(how, what).select_value(i) }

Is there any method to get the array?

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

 On Tue, Sep 7, 2010 at 11:59 AM, Ekin Han nbkhic...@gmail.com wrote:
  I know I can select each item with text, but now I want to selct each
 option by using value.

 browser.select_list(how, what).select_value(value)


  Can can I get all the value of each option?

 Did not understand this.

 Ž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] How to use Watir::Simple Module

2010-09-07 Thread Željko Filipin
On Tue, Sep 7, 2010 at 12:16 PM, Ekin Han nbkhic...@gmail.com wrote:
 Is there any method to get the array?

This should work (from http://wiki.openqa.org/display/WTR/Selection+Boxes):

browser.select_list(how, what).getAllContents

Ž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