[Wtr-general] How to open new IE-window minimized?

2006-07-26 Thread mail
Hello!

IŽm using something like ie.link(:url, bla).click and a new broswer window 
opens where I attach to do something.
Works fine, but I want the new browser window to be started minimized (or 
invisible). Any suggestions?

Thanks,
Christian



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


Re: [Wtr-general] How to open new IE-window minimized?

2006-07-26 Thread Nivetha Padmanaban

Use minimize to minimize
the IE window.

Regards,
Nivetha.
Email - [EMAIL PROTECTED]






[EMAIL PROTECTED]

Sent by: [EMAIL PROTECTED]
07/26/2006 11:45 AM



Please respond to
wtr-general@rubyforge.org





To
wtr-general@rubyforge.org


cc



Subject
[Wtr-general] How to open new IE-window
minimized?








Hello!

Im using something like ie.link(:url, bla).click and a new
broswer window opens where I attach to do something.
Works fine, but I want the new browser window to be started minimized (or
invisible). Any suggestions?

Thanks,
Christian



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

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

Re: [Wtr-general] How to open new IE-window minimized?

2006-07-26 Thread [EMAIL PROTECTED]
But then still the new window appears.
I want the same behaviour as if a watir-script is started with -b.

Regards,
Christian

- Original Message -
From: [EMAIL PROTECTED] Nivetha Padmanaban
To: wtr-general@rubyforge.org
Date: 26.07.2006 08:29:31
Subject: Re: [Wtr-general] How to open new IE-window minimized?


 
 Use minimize to minimize
 the IE window.
 
 Regards,
 Nivetha.
 Email - [EMAIL PROTECTED]
 
 
 
 
 
 
 [EMAIL PROTECTED]
 
 Sent by: [EMAIL PROTECTED]
 07/26/2006 11:45 AM
 
 
 
 Please respond to
 wtr-general@rubyforge.org
 
 
 
 
 
 To
 wtr-general@rubyforge.org
 
 
 cc
 
 
 
 Subject
 [Wtr-general] How to open new IE-window
 minimized?
 
 
 
 
 
 
 
 
 Hello!
 
 I#381;m using something like ie.link(:url, bla).click and a new
 broswer window opens where I attach to do something.
 Works fine, but I want the new browser window to be started minimized (or
 invisible). Any suggestions?
 
 Thanks,
 Christian
 
 
 
 ___
 Wtr-general mailing list
 Wtr-general@rubyforge.org
 http://rubyforge.org/mailman/listinfo/wtr-general
 
 



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


Re: [Wtr-general] Cancel Subscription

2006-07-26 Thread Zeljko Filipin
Go to http://rubyforge.org/mailman/listinfo/wtr-general and unsubscribe.ŽeljkoOn 7/25/06, 
Tess :) [EMAIL PROTECTED] wrote:
I do not wish to recieve emails from this network anymore.Please take meoff the list or tell me what I can do.Thanks!Tessa[EMAIL PROTECTED]
___Wtr-general mailing listWtr-general@rubyforge.orghttp://rubyforge.org/mailman/listinfo/wtr-general

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

Re: [Wtr-general] How to open new IE-window minimized?

2006-07-26 Thread Zeljko Filipin
It looks like a feature request to me.http://jira.openqa.org/browse/WTROn 7/26/06, 
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
But then still the new window appears.I want the same behaviour as if a watir-script is started with -b.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] Verifying instance of text in second browser?

2006-07-26 Thread Max Russell








Hello



Im wishing to check that when an application is
launched more than once in a browser, only the first browser instance can login
and the second is returned a suitable error page.



So far Ive added this code to a module, to deal with
this:



 def otherinstance(testname, testpass, testldap)

 threads = []

 2.times do threads 
Thread.new {login(testname, testpass, testldap)}

  begin

 assert(ie.frame(main).contains_text(app_name)
)

 logger.log(Passed.
Found test string 'app_name' )

 logger.log_results(otherinstance,
app_name, app_name, TEST PASSED.)

  rescue = e

 logger.log(*FAILED*.
+ e.message + \n + e.backtrace.join(\n))

 logger.log_results(otherinstance,
app_name, app_name, TEST FAILED.) 

  end



currently, Im just trying this out, so the code is
very similar to the Watir examples.



My question is how I identify the browser instance? Do I
iinitialise an empty count in the otherinstance method and then increment if
for each instance created in the block.



(Incidentally - the number 2 is not fixed; once Ive
got this code up and running it will be good for x instances of the browser.



Thanks

Max





Max Russell

test
Analyst.

InPS



Tel:
01382 223900

Fax:01382
204488



Visit our Web site at www.inps.co.uk



The
information in this internet email is confidential and is intended solely for
the addressee. Access, copying or re-use of information in it by anyone else is
not authorised. Any views or opinions presented are solely those of the author
and do not necessarily represent those of In Practice Systems Limited or any of
its affiliates. If you are not the intended recipient please contact
[EMAIL PROTECTED]








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

Re: [Wtr-general] Keyword Framework UI

2006-07-26 Thread Nivetha Padmanaban

What do u mean by CSDDT?

Regards,
Nivetha.
Email - [EMAIL PROTECTED]






Adrian Lewis [EMAIL PROTECTED]

Sent by: [EMAIL PROTECTED]
07/26/2006 05:28 PM



Please respond to
wtr-general@rubyforge.org





To
wtr-general@rubyforge.org


cc



Subject
Re: [Wtr-general] Keyword Framework
 UI








I can write a version of the CSDDT for Watir

http://tinyurl.com/z6zjo

But I want at least 3 people asking for this and the first iteration will
be out in around 2 weeks.

aidy
  
  
  
 
  
  
  
 
  
  
  
 








---
This message and any attachment are confidential and may be privileged
or otherwise protected from disclosure. 
If you are not the intended recipient, please telephone or email the sender
and delete this message and any attachment from your system. 
If you are not the intended recipient you must not copy this message or
attachment or disclose the contents to any other person.
---
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

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

Re: [Wtr-general] Keyword Framework UI

2006-07-26 Thread Adam Reed



I had the same 
question.

Control Synchronized Data Driven Testing 
(CSDDT) framework by Adrian Rutter

Chapter 8 in the book that Adrian linked 
is summarized on www.stickyminds.com 
as:
". . .the authors explain how to implement a 
project within the CSDDT framework. The chapter includes a troubleshooting 
section, which details common problems encountered with this approach, and the 
solutions. This chapter includes a great deal of specific Rational Robot 
SQABasic code examples, including an entire example CSDDT 
framework."


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Nivetha 
PadmanabanSent: Wednesday, July 26, 2006 7:27 AMTo: 
wtr-general@rubyforge.orgSubject: Re: [Wtr-general] Keyword Framework 
 UI
What do u mean by CSDDT? 
Regards,Nivetha.Email - 
[EMAIL PROTECTED]

  
  
Adrian Lewis 
  [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 
  07/26/2006 05:28 PM 
  


  
Please respond 
towtr-general@rubyforge.org

  


  
To
  wtr-general@rubyforge.org 

  
cc
  

  
Subject
  Re: [Wtr-general] Keyword Framework 
 UI
  


  
  I 
can write a version of the CSDDT for 
Watirhttp://tinyurl.com/z6zjoBut I want at least 3 people asking 
for this and the first iteration willbe out in around 2 
weeks.aidy
   
   
  
   
   
   
  
   
   
  
---This 
message and any attachment are confidential and may be privileged or otherwise 
protected from disclosure. If you are not the intended recipient, please 
telephone or email the sender and delete this message and any attachment from 
your system. If you are not the intended recipient you must not copy 
this message or attachment or disclose the contents to any other 
person.---___Wtr-general 
mailing 
listWtr-general@rubyforge.orghttp://rubyforge.org/mailman/listinfo/wtr-general
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Keyword Framework UI

2006-07-26 Thread Adrian Lewis
 What do u mean by CSDDT?

Control Synchronized Data-Driven Testing written by Bruce Posey and
outlined in the book 'Just Enough Software Test Automation' I amended it to
make it more at the atomic level.

Have a look at the link I sent you.

aidy




---
This message and any attachment are confidential and may be privileged or 
otherwise protected from disclosure. 
If you are not the intended recipient, please telephone or email the sender and 
delete this message and any attachment from your system.  
If you are not the intended recipient you must not copy this message or 
attachment or disclose the contents to any other person.
---
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Keyword Framework UI

2006-07-26 Thread Adrian Lewis
 Control Synchronized Data Driven Testing (CSDDT) 

Bruce wrote it, I amended it.

The document I wrote on it is here
http://www.scionlabs.com/using_rational_robot.zip

The framework is simple and portable (agile? I think). Spoke to Bruce and
he is very interested in Watir.

I am CC'ing him on this e-mail.

aidy




---
This message and any attachment are confidential and may be privileged or 
otherwise protected from disclosure. 
If you are not the intended recipient, please telephone or email the sender and 
delete this message and any attachment from your system.  
If you are not the intended recipient you must not copy this message or 
attachment or disclose the contents to any other person.
---
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Just wanted to invoke click event where the button have parameters in it

2006-07-26 Thread Bret Pettichord
On 7/19/06, Zeljko Filipin [EMAIL PROTECTED] wrote:
HTML that you provided is not valid. Three tags have the same id. Ids should be unique.This is true. However, i think there is a workaround for this.Using 1.5.ie.button(:html, /
'delete', 'KH')/).clickBret
On 7/19/06, VIKASH KUMAR 
[EMAIL PROTECTED] wrote:


Sir,  In my web page there are lots of buttons having same name, they are called using _javascript_. They are as follows:
  button type=button name=delete id=delete  'BF');Delete/button  
  
button type=button name=delete id=delete  'BI');Delete/buttonbutton type=button name=delete id=delete  'KH');Delete/button
  ie.button(:index,3).click, this works great if we know the index, but if
 someone just doesn't know the index,knows only the parameter which is ('delete', 'KH'), then what is the solution for it?Please send me the solution for this.  Thanks in Advance
With Regards  Vikash Kumar 
	

	
		 
Find out what India is talking about on 

Yahoo! Answers India. 
Send FREE SMS from New Yahoo! Messenger to Mobile: Download 

NOW!
___Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


___Wtr-general mailing listWtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Just wanted to invoke click event where the button have parameters in it

2006-07-26 Thread Zeljko Filipin
I knew there must be a way to click that button, I just did not know how. Watir is getting better and better. :)You made a typo, it should beie.button(:html, /'delete', 'KH'/).clickŽeljko
On 7/26/06, Bret Pettichord [EMAIL PROTECTED] wrote:
ie.button(:html, /
'delete', 'KH')/).click
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] Fw: was (thanks for the help) now SYSTIR

2006-07-26 Thread Adrian Lewis


Michael Bolton wrote

aidy  If there was a way to use Ruby to test Java and old win32 

mb  Check out SYSTIR.

mb  http://atomicobject.com/systir.page

I cannot see for the life of me how SYSTIR could help to test legacy win32.
The only thing I could think of is embed C in Ruby, to integrate with an
application's process.

With Java we could use JRuby to utilise the Robot class

aidy

ps have you seen the film 'Office Space'?




---
This message and any attachment are confidential and may be privileged or 
otherwise protected from disclosure. 
If you are not the intended recipient, please telephone or email the sender and 
delete this message and any attachment from your system.  
If you are not the intended recipient you must not copy this message or 
attachment or disclose the contents to any other person.
---
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] How to open new IE-window minimized?

2006-07-26 Thread Lonny Eachus





What is causing IE to open a new window? Does the link tag specify
"target=blank" or something like that?

If so -- AND you do not really need a new window -- what you can do is
rewrite the html of the link to remove "target =" before you click:

(1) Minimize the window you are in.

(2) Remove "target = blah" from the link tag. (You can swap steps 1
and 2 if you want.)

(3) Click the link.

Then your browser should open the link in the SAME window . . . still
minimized.

If this is what you are looking for, and you need help with step #2,
write back.

Lonny Eachus
===



  

  

Subject:

[Wtr-general] How to open new IE-window minimized?
  
  

From: 
[EMAIL PROTECTED]
  
  

Date: 
Wed, 26 Jul 2006 08:15:24 +0200 (CEST)
  

  
  
  Hello!

Im using something like ie.link(:url, "bla").click and a new broswer window opens where I attach to do something.
Works fine, but I want the new browser window to be started minimized (or invisible). Any suggestions?

Thanks,
Christian
  







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

[Wtr-general] AWESOME Ruby Hacks

2006-07-26 Thread Michael Bolton
Hi, folks...

In Chris McMahon's presentation at Agile 2006 today, we found this site:

http://blog.nicksieger.com/articles/2006/04/23/tweaking-irb

This outlines some wonderful things about how to hack your IRB configuration
file to do some totally awesome things, including 

- IRB command-line completion
- IRB command-line recall
- logging the commands that you've issued in an IRB session
- recalling (via up-arrow) the commands that you've issued in previous IRB
sessions (what was I doing yesterday?  {up}{up}{up}{up}{up} -- oh, right
that was it.)

Hope this helps.  Ruby rules!

---Michael B.

DevelopSense:  Software Testing in Plain English
Web Site:  http://www.developsense.com http://www.developsense.com 
Newsletter: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
Blog: http://www.developsense.com/blog.html
 
 

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


Re: [Wtr-general] AWESOME Ruby Hacks

2006-07-26 Thread Jesper Rønn-Jensen
On 7/26/06, Michael Bolton [EMAIL PROTECTED] wrote:
http://blog.nicksieger.com/articles/2006/04/23/tweaking-irbThis outlines some wonderful things about how to hack your IRB configurationfile to do some totally awesome things, including
What a great trick. Thanks a lot for sharing.I had to make a small adjustment though. On my system (win xp), I had to set a system variable HOME and point it to a dir where I put the .irbrc file.
Read more about that here: a href="" href="http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/77139">http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/77139irb completion under windows/a (ruby-talk)
Unfortunately, Nicks blog post was not open for comments (or something else went wrong so I couldn't comment).

/Jesper-- -- Jesper Rønn-JensenLinkedIn: http://linkedin.com/in/jesperhttp://justaddwater.dk/ (weblog)
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] AWESOME Ruby Hacks

2006-07-26 Thread Nick Sieger
On 7/26/06, Jesper Rønn-Jensen [EMAIL PROTECTED] wrote:
On 7/26/06, Michael Bolton 
[EMAIL PROTECTED] wrote:
http://blog.nicksieger.com/articles/2006/04/23/tweaking-irb
This outlines some wonderful things about how to hack your IRB configurationfile to do some totally awesome things, including
What a great trick. Thanks a lot for sharing.Glad that you guys are finding it useful! 
Unfortunately, Nicks blog post was not open for comments (or something else went wrong so I couldn't comment).Sorry about that, I had comments closing after 10 days -- see no real reason to do that. Would you mind trying again?
Cheers,/Nick
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] AWESOME Ruby Hacks

2006-07-26 Thread Rand Thacker
Hey, and as an aside, XP pro systems have ENV['HOMEPATH'], so you'd changeLOG = #{ENV['HOME']}/.irb-historytoLOG = #{ENV['HOMEPATH']}\\.irb-history
Worked like a charm for me.And, thanks to all for these great pointers. Very helpful.On 7/26/06, Nick Sieger 
[EMAIL PROTECTED] wrote:On 7/26/06, 
Jesper Rønn-Jensen [EMAIL PROTECTED] wrote:

On 7/26/06, Michael Bolton 

[EMAIL PROTECTED] wrote:

http://blog.nicksieger.com/articles/2006/04/23/tweaking-irb
This outlines some wonderful things about how to hack your IRB configurationfile to do some totally awesome things, including
What a great trick. Thanks a lot for sharing.Glad that you guys are finding it useful! 

Unfortunately, Nicks blog post was not open for comments (or something else went wrong so I couldn't comment).Sorry about that, I had comments closing after 10 days -- see no real reason to do that. Would you mind trying again?
Cheers,/Nick

___Wtr-general mailing listWtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
-- I am the most humble person in the world!
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] Very basic Watir/Ruby question?

2006-07-26 Thread mi
Hi all,
I'm very new to Watir/Ruby stuff:-(  I'm using Simple module to open up 
a browser and load a url using new_browser_at(url) and am also using 
fill_text_field() and click_button_with_value() to fill all the text 
fields and button click on the page.

Now there is a checkbox on the page that i need to click also and i 
don't see any functions that will do under Simple module??  How would I 
go by to click on the checkbox

Thanks in advance!!
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Very basic Watir/Ruby question?

2006-07-26 Thread Jordan Glasner

On Jul 26, 2006, at 9:36 PM, mi wrote:

 How would I
 go by to click on the checkbox

ie.checkbox(:id,'your_id').set


http://wtr.rubyforge.org/rdoc/classes/Watir/CheckBox.html

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


Re: [Wtr-general] Watir, file_field, dojo and VMware

2006-07-26 Thread Bret Pettichord
What is a ruby attach dialog?I'd be surprised if vmWare itself is the source of your problem. I'm pretty sure we have people here who have used it with Watir successfully. True?Bret
On 6/26/06, John Castellucci [EMAIL PROTECTED] wrote:

















Howdy all – I have some Watir tests
that invoke the file_field field object, and I've noticed some slightly
odd behavior when running on native WinXP vs. virtual
WinXP through VMware.



If a regular page has a file_field control,
everything works peachy.



But, the application also has pages where you
can click a button and it opens a dojo (a _javascript_ toolkit) modal faux popup
with the file_field (the underlying page is disabled), and this is where I see
the weird behavior.



When invoking field_field.set(), only the ruby
attach dialog opens – the standard IE File Upload dialog *does not* open. It's not until the attach dialog
closes that the IE File Upload finally appears, and at this point, the Watir
script "hangs." (I suspect because there was no File dialog for
ruby to attach to).



If I were to take a stab in the dark, I would
say it might have something to do with how VMware manages
threads – dojo, ruby and IE are all fighting over processes, and IE is
the loser…



Anyone ever run into behavior like this
before?









___Wtr-general mailing listWtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general