[wtr-general] Re: What Email Provider is best used with Watir?

2012-02-02 Thread Dan Claudiu Pop
You can also take a look at convio's watirmark-email framework
https://github.com/convio/watirmark-email but i would recommend the
following gems as Željko said:

http://rubygems.org/gems/mail
http://rubygems.org/gems/gmail

Dan

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

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


Re: [wtr-general] Re: Extend watir

2012-02-02 Thread Dan
You could do something like this as well.  The config file has the browser 
type, the number of browsers, which browser and the url as well.

@config = YAML.load_file(config.yaml) # get our configuration from a file

$browsers = (1..@config[runSettings][numberOfBrowsers]).collect {|b| b 
= Watir::Browser.new @config[runSettings][browser]}

# All browsers to load the application
threads = []
  for browser in $browsers
threads  Thread.new {browser.goto @config[runSettings][url]}
  end
threads.each {|x| x.join}

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

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


[wtr-general] can select a value in the select_list that is hidden

2012-02-02 Thread Rahul Sharma
Hi,

I have a select_list that is hidden in the DOM but when I say
browser.select_list(:id = 'name').select(value_from_select_list) it
doesn't complain.

Now I can say select only when_present which it wont as it's not
visible, Should it not complain in the first place when selecting a
value in the hidden field?

Thanks

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

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


[wtr-general] Checking whether the text in the password field is masked or not

2012-02-02 Thread chaitanya
Hi guys,

I was wondering whether there is any method in Watir which allows you
to check whether the text in the password field is masked and not
displayed as plain text. I think I read somewhere that it is beyond
the scope of Watir to test how the browser renders a particular HTML
element, in this case being input type=password /.

If so, am I write to assume that testing this kind of behavior is
completely outside the scope of Watir? If, it is could someone please
kindly point me to the link where the scope of Watir is given.

Thanks,
Chaitanya

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

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


Re: [wtr-general] Re: Checking whether the text in the password field is masked or not

2012-02-02 Thread Eric Mathiesen
why not just take a screenshot and visually verify?

On Thu, Feb 2, 2012 at 9:09 AM, Dan dfra...@gmail.com wrote:

 Can't you just check and make sure the value of the text_field isn't equal
 to the password?

 Get the value of the text field like this : b.text_field(:id =
 password).value

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

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


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

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


Re: [wtr-general] Checking whether the text in the password field is masked or not

2012-02-02 Thread Željko Filipin
On Thu, Feb 2, 2012 at 11:44 AM, chaitanya vengeance...@gmail.com wrote:
 I was wondering whether there is any method in Watir which allows you
 to check whether the text in the password field is masked and not
 displayed as plain text.

I think that is a browser feature. I do not think I have ever seen a
password field that displayed it's contents.

Željko
--
watir.com/book - author

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

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


[wtr-general] How to hide popuped new window ?

2012-02-02 Thread gwky
I would like to hide all browser window.
My target site has a button which makes a new window by using
TARGET=_blank.

My code is as follows:
1) $HIDE_IE = true
2) button.click
3) browser2 = Watir::IE.attach(:url, popuped_url)

My problem is the new popuped window is shown
in a very short time (may be time interval between step 2 and step 3).

Is it possible completely hiding browser window ?

Thank you in advance.

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

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


[wtr-general] Re: POPUP HANDLING IN WATIR

2012-02-02 Thread Jeff Ducharme
Hi AUQA, 
 
Is the problem with the click_no_wait. Is your script executing the 
click_no_wait before the popup has appeared therefor no OK text to click. 
We decided to implement a wait_until_exists method to address this issue. 
This example is specificly for ajax element becoming enabled but the 
principle can carry over to the close popup issue. 
 
http://www.3qilabs.com/2012/01/watir-method-for-waiting-until-ajax-elements-have-loaded-completely-or-become-enabled/
 
 

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

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


[wtr-general] Re: Checking whether the text in the password field is masked or not

2012-02-02 Thread chaitanya
@Eric,

I am doing the screenshot thing, but I have a requirement where they
need a method which will explicitly return a true or a false if the
password field is masked or not. But as @Zeljko states that since it
is a browser feature, isn't it out of the scope of things which Watir
can test?

Dan, the value method returns an emtpy string. it does not return the
string as a sequence of **

Thanks for the suggestions guys

Chaitanya

On Feb 2, 10:11 am, Željko Filipin zeljko.fili...@gmail.com wrote:
 On Thu, Feb 2, 2012 at 11:44 AM, chaitanya vengeance...@gmail.com wrote:
  I was wondering whether there is any method in Watir which allows you
  to check whether the text in the password field is masked and not
  displayed as plain text.

 I think that is a browser feature. I do not think I have ever seen a
 password field that displayed it's contents.

 Željko
 --
 watir.com/book - author

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

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


[wtr-general] Re: Checking whether the text in the password field is masked or not

2012-02-02 Thread chaitanya
Well,

I wanted some sort of confirmation before I get into a heated argument
with my team lead. Thus, I posted it here. Thanks for the information.
I really appreciate it.

On Feb 2, 11:05 am, Eric Mathiesen mathiese...@gmail.com wrote:
 It is out of scope,  that's why I recomended a manual verification of the
 condition under test.  I don't think any of the commercial products (quick
 test pro, silk, etc...) have this ability...

 Perhaps search for the * to exist might satisfy your condition...
 Just a thought...







 On Thu, Feb 2, 2012 at 9:59 AM, chaitanya vengeance...@gmail.com wrote:
  @Eric,

  I am doing the screenshot thing, but I have a requirement where they
  need a method which will explicitly return a true or a false if the
  password field is masked or not. But as @Zeljko states that since it
  is a browser feature, isn't it out of the scope of things which Watir
  can test?

  Dan, the value method returns an emtpy string. it does not return the
  string as a sequence of **

  Thanks for the suggestions guys

  Chaitanya

  On Feb 2, 10:11 am, Željko Filipin zeljko.fili...@gmail.com wrote:
   On Thu, Feb 2, 2012 at 11:44 AM, chaitanya vengeance...@gmail.com
  wrote:
I was wondering whether there is any method in Watir which allows you
to check whether the text in the password field is masked and not
displayed as plain text.

   I think that is a browser feature. I do not think I have ever seen a
   password field that displayed it's contents.

   Željko
   --
   watir.com/book - author

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

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

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

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


Re: [wtr-general] Re: Checking whether the text in the password field is masked or not

2012-02-02 Thread bis
sikuli might work for you

On Thu, Feb 2, 2012 at 2:05 PM, Eric Mathiesen mathiese...@gmail.comwrote:

 It is out of scope,  that's why I recomended a manual verification of the
 condition under test.  I don't think any of the commercial products (quick
 test pro, silk, etc...) have this ability...

 Perhaps search for the * to exist might satisfy your condition...
 Just a thought...


 On Thu, Feb 2, 2012 at 9:59 AM, chaitanya vengeance...@gmail.com wrote:

 @Eric,

 I am doing the screenshot thing, but I have a requirement where they
 need a method which will explicitly return a true or a false if the
 password field is masked or not. But as @Zeljko states that since it
 is a browser feature, isn't it out of the scope of things which Watir
 can test?

 Dan, the value method returns an emtpy string. it does not return the
 string as a sequence of **

 Thanks for the suggestions guys

 Chaitanya

 On Feb 2, 10:11 am, Željko Filipin zeljko.fili...@gmail.com wrote:
  On Thu, Feb 2, 2012 at 11:44 AM, chaitanya vengeance...@gmail.com
 wrote:
   I was wondering whether there is any method in Watir which allows you
   to check whether the text in the password field is masked and not
   displayed as plain text.
 
  I think that is a browser feature. I do not think I have ever seen a
  password field that displayed it's contents.
 
  Željko
  --
  watir.com/book - author

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

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


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

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


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

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