[wtr-general] Re: Calendar Click

2010-08-03 Thread gs
Hi,

After investigation on the  www.cleartrip.com page:
to click the calendar:

ie.image(:alt, Calendar).click

and to click on exact day :

ie.link(:text, 12).click


(try to user firebug under firefox to find the element you would like
to work with or iedeveloper tool bar)
Worked for me.

Br,
GS


On Aug 3, 7:10 am, madhu kumar madhu@gmail.com wrote:
 HI Pallavi,

   This is travel site just go through this Linkwww.cleartrip.com, in main
 page only calendar available. and i dont want to put the date directly. I am
 trying to select from calendar only.

 Regards,
 Madhu

 2010/8/2 Pallavi Sharma write2pall...@gmail.com



  Hi Madhu

  Can't you directly type in your text box for date? Is it disabled? Looks
  like a travel site, if the link available online which is public which we
  can try..

  Calrendar's are usually div objects.

  Send us the html of the calendar div and your page, that might give more
  information.

  Regards
  Pallavi

  On Mon, Aug 2, 2010 at 4:51 PM, madhu kumar madhu@gmail.com wrote:

  Hi,

   I attached the screenshot, just let me know how to click the calendar
  from mouse click using watir.

  Regards,
  Madhu

  On Mon, Aug 2, 2010 at 4:11 PM, Željko Filipin 
  zeljko.fili...@wa-research.ch wrote:

  On Mon, Aug 2, 2010 at 12:34 PM, madhu kumar madhu@gmail.com
  wrote:
    Hi have a calendar in my webpage, and i intalled watir recorder

  Watir recorder is not supported here. Please post to their support forum.
  Let me know if you can not find it.

  If you would like to automate calendar with Watir, you will have to
  provide more information.

  Ž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...@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

   --
  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] Calendar Click

2010-08-03 Thread Željko Filipin
2010/8/3 madhu kumar madhu@gmail.com
   This is travel site just go through this Link www.cleartrip.com

And you really thought it would be easier for us to debug your problem with
screen shot, instead of sending us the URL?!

See how fast you got the answer once you have sent the URL?

require rubygems
require watir
browser = Watir::Browser.start(http://www.cleartrip.com/;)
browser.image(:alt = Calendar).click
browser.cell(:text = 4).link(:index = 1).click
# 4/8/2010 is selected

Ž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] Calendar Click

2010-08-03 Thread madhu kumar
HI,

  Can anyone let me know how to connect to mysql database using Ruby.

Regards,
Madhu

On Tue, Aug 3, 2010 at 2:19 PM, Željko Filipin 
zeljko.fili...@wa-research.ch wrote:

 2010/8/3 madhu kumar madhu@gmail.com

This is travel site just go through this Link www.cleartrip.com

 And you really thought it would be easier for us to debug your problem with
 screen shot, instead of sending us the URL?!

 See how fast you got the answer once you have sent the URL?

 require rubygems
 require watir
 browser = Watir::Browser.start(http://www.cleartrip.com/;)
 browser.image(:alt = Calendar).click
 browser.cell(:text = 4).link(:index = 1).click
 # 4/8/2010 is selected

 Ž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] Calendar Click

2010-08-03 Thread Željko Filipin
On Tue, Aug 3, 2010 at 11:11 AM, madhu kumar madhu@gmail.com wrote:
   Can anyone let me know how to connect to mysql database using Ruby.

You should ask at ruby forum, this one is for watir. If you search this
group or the web, you will find the answer.

Ž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] Calendar Click

2010-08-03 Thread Padma Reddy
Hi Madhu,

Make sure that mysql is installed on the machine from where you want to
execute the ruby script.
Do 'gem install mysql' (if this dont work, download mysql and then
install).  ( 'gem list' check if mysql is there)

try this in your script:

require 'mysql'
my = Mysql.new('IP', 'mysql username', 'password', 'database name')

Hope this will help you.

On Tue, Aug 3, 2010 at 2:41 PM, madhu kumar madhu@gmail.com wrote:

 HI,

   Can anyone let me know how to connect to mysql database using Ruby.

 Regards,
 Madhu


 On Tue, Aug 3, 2010 at 2:19 PM, Željko Filipin 
 zeljko.fili...@wa-research.ch wrote:

 2010/8/3 madhu kumar madhu@gmail.com

This is travel site just go through this Link www.cleartrip.com

 And you really thought it would be easier for us to debug your problem
 with screen shot, instead of sending us the URL?!

 See how fast you got the answer once you have sent the URL?

 require rubygems
 require watir
 browser = Watir::Browser.start(http://www.cleartrip.com/;)
 browser.image(:alt = Calendar).click
 browser.cell(:text = 4).link(:index = 1).click
 # 4/8/2010 is selected

 Ž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.comwatir-general%2bunsubscr...@googlegroups.com




-- 
Padma:)

Don't let someone become a priority in your life, when you are just an
option in their life.. Relationships work best when they are balanced! :-)

-- 
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: Recent Stack Overflow Questions Tagged Watir

2010-08-03 Thread Željko Filipin
http://stackoverflow.com/questions/3386318/how-to-block-images-in-watir

-- 
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] Calendar Click

2010-08-03 Thread madhu kumar
Hi padma,

if i type require 'mysql' its coming no such file to load. can i know whats
the proble.

Regards,
Madhu

On Tue, Aug 3, 2010 at 2:56 PM, Padma Reddy padmaj...@gmail.com wrote:

 Hi Madhu,

 Make sure that mysql is installed on the machine from where you want to
 execute the ruby script.
 Do 'gem install mysql' (if this dont work, download mysql and then
 install).  ( 'gem list' check if mysql is there)

 try this in your script:

 require 'mysql'
 my = Mysql.new('IP', 'mysql username', 'password', 'database name')

 Hope this will help you.

 On Tue, Aug 3, 2010 at 2:41 PM, madhu kumar madhu@gmail.com wrote:

 HI,

   Can anyone let me know how to connect to mysql database using Ruby.

 Regards,
 Madhu


 On Tue, Aug 3, 2010 at 2:19 PM, Željko Filipin 
 zeljko.fili...@wa-research.ch wrote:

 2010/8/3 madhu kumar madhu@gmail.com

This is travel site just go through this Link www.cleartrip.com

 And you really thought it would be easier for us to debug your problem
 with screen shot, instead of sending us the URL?!

 See how fast you got the answer once you have sent the URL?

 require rubygems
 require watir
 browser = Watir::Browser.start(http://www.cleartrip.com/;)
 browser.image(:alt = Calendar).click
 browser.cell(:text = 4).link(:index = 1).click
 # 4/8/2010 is selected

 Ž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.comwatir-general%2bunsubscr...@googlegroups.com




 --
 Padma:)

 Don't let someone become a priority in your life, when you are just an
 option in their life.. Relationships work best when they are balanced! :-)

 --
 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] Calendar Click

2010-08-03 Thread Željko Filipin
On Tue, Aug 3, 2010 at 12:04 PM, madhu kumar madhu@gmail.com wrote:
 if i type require 'mysql' its coming no such file to load.

Please start another thread, this one is about calendar.

Ž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] Calendar Click

2010-08-03 Thread Padma Reddy
You might not have installed mysql.
check if mysql is there in the list displayed using 'gem list'
On Tue, Aug 3, 2010 at 3:34 PM, madhu kumar madhu@gmail.com wrote:

 Hi padma,

 if i type require 'mysql' its coming no such file to load. can i know whats
 the proble.

 Regards,
 Madhu


 On Tue, Aug 3, 2010 at 2:56 PM, Padma Reddy padmaj...@gmail.com wrote:

  Hi Madhu,

 Make sure that mysql is installed on the machine from where you want to
 execute the ruby script.
 Do 'gem install mysql' (if this dont work, download mysql and then
 install).  ( 'gem list' check if mysql is there)

 try this in your script:

 require 'mysql'
 my = Mysql.new('IP', 'mysql username', 'password', 'database name')

 Hope this will help you.

   On Tue, Aug 3, 2010 at 2:41 PM, madhu kumar madhu@gmail.comwrote:

 HI,

   Can anyone let me know how to connect to mysql database using Ruby.

 Regards,
 Madhu


 On Tue, Aug 3, 2010 at 2:19 PM, Željko Filipin 
 zeljko.fili...@wa-research.ch wrote:

 2010/8/3 madhu kumar madhu@gmail.com

This is travel site just go through this Link www.cleartrip.com

 And you really thought it would be easier for us to debug your problem
 with screen shot, instead of sending us the URL?!

 See how fast you got the answer once you have sent the URL?

 require rubygems
 require watir
 browser = Watir::Browser.start(http://www.cleartrip.com/;)
 browser.image(:alt = Calendar).click
 browser.cell(:text = 4).link(:index = 1).click
 # 4/8/2010 is selected

 Ž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.comwatir-general%2bunsubscr...@googlegroups.com




 --
 Padma:)

 Don't let someone become a priority in your life, when you are just an
 option in their life.. Relationships work best when they are balanced! :-)

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




-- 
Padma:)

Don't let someone become a priority in your life, when you are just an
option in their life.. Relationships work best when they are balanced! :-)

-- 
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] Calendar Click

2010-08-03 Thread madhu kumar
Hi Padma,

  Mysql is there its listed as Mysql 2.8.1 *86-mingw32 when i give the
command gem list.

Regards,
Madhu



On Tue, Aug 3, 2010 at 3:42 PM, Padma Reddy padmaj...@gmail.com wrote:

 You might not have installed mysql.
 check if mysql is there in the list displayed using 'gem list'
 On Tue, Aug 3, 2010 at 3:34 PM, madhu kumar madhu@gmail.com wrote:

 Hi padma,

 if i type require 'mysql' its coming no such file to load. can i know
 whats the proble.

 Regards,
 Madhu


 On Tue, Aug 3, 2010 at 2:56 PM, Padma Reddy padmaj...@gmail.com wrote:

  Hi Madhu,

 Make sure that mysql is installed on the machine from where you want to
 execute the ruby script.
 Do 'gem install mysql' (if this dont work, download mysql and then
 install).  ( 'gem list' check if mysql is there)

 try this in your script:

 require 'mysql'
 my = Mysql.new('IP', 'mysql username', 'password', 'database name')

 Hope this will help you.

   On Tue, Aug 3, 2010 at 2:41 PM, madhu kumar madhu@gmail.comwrote:

 HI,

   Can anyone let me know how to connect to mysql database using Ruby.

 Regards,
 Madhu


 On Tue, Aug 3, 2010 at 2:19 PM, Željko Filipin 
 zeljko.fili...@wa-research.ch wrote:

 2010/8/3 madhu kumar madhu@gmail.com

This is travel site just go through this Link www.cleartrip.com

 And you really thought it would be easier for us to debug your problem
 with screen shot, instead of sending us the URL?!

 See how fast you got the answer once you have sent the URL?

 require rubygems
 require watir
 browser = Watir::Browser.start(http://www.cleartrip.com/;)
 browser.image(:alt = Calendar).click
 browser.cell(:text = 4).link(:index = 1).click
 # 4/8/2010 is selected

 Ž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.comwatir-general%2bunsubscr...@googlegroups.com




 --
 Padma:)

 Don't let someone become a priority in your life, when you are just an
 option in their life.. Relationships work best when they are balanced! :-)

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




 --
 Padma:)

 Don't let someone become a priority in your life, when you are just an
 option in their life.. Relationships work best when they are balanced! :-)

 --
 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] when HTML code changes to often

2010-08-03 Thread Sharma Vishav
I like simplicity of Watir and ease of writing test cases with it.I am
working  on an agile project, where screens, hence underline HTML
changes between sprints. Actual screens will get finalised towards
very end of the project. Watir scripts depend on HTML code to identify
elements and drive automation test cases. Problem I am facing is,test
cases written in sprint 1 fails on sprint 2 build because of changes
in underlying HTML and not because of actual functional breakage in
software under test. This causes frustration to whole of project team.
Next step for me is then to identify test cases which have failed as a
result of change in HTML, modify them and re run whole test suite.

I have made my tests modular using watir, so that it minimise the test
breakage to the particular areas, but still developers, manual testers
project management lose interest in test automation and they seem to
incline to do manual testing.


I am sure, other people must have faced similar situations in their
projects. I am seeking an advice or share of experiences here what
have they done to handle such scenarios.
Any test strategy they have applied,Any test scripts maintenance
strategy,Any  test script writing technique, any thing else, that may
be helpful in such scenario


Your help is much appreciated

-- 
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] when HTML code changes to often

2010-08-03 Thread Željko Filipin
On Tue, Aug 3, 2010 at 12:45 PM, Sharma Vishav sharma.vis...@gmail.com
wrote:
 I am working on an agile project, where screens, hence underline HTML
 changes between sprints.

Application that I am testing is just changing technologies, so I face a
similar problem.

Make sure your Watir code is good quality.

The only thing that would help your tests not to break is to make the
application testable. In this context it means: insist that all HTML
elements that you use in your tests have IDs (where ever possible), and
insist that IDs do not change (without a good reason). Then you can use
element ID to access the element and no matter where the element is located
on the page.

If the functionality changes dramatically from sprint to sprint (and not
just rearranging elements on the page), then there is not other way than to
fix tests.

Ž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] when HTML code changes to often

2010-08-03 Thread Sharma Vishav
Thanks Zeljko,

To clarify when you say
you can use
 element ID to access the element and no matter where the element is located
 on the page.

using element ID would be able to access element, as long as the
element ID and the frame it was defined originally does not change.


On Tue, Aug 3, 2010 at 10:55 PM, Željko Filipin
zeljko.fili...@wa-research.ch wrote:
 On Tue, Aug 3, 2010 at 12:45 PM, Sharma Vishav sharma.vis...@gmail.com
 wrote:
 I am working on an agile project, where screens, hence underline HTML
 changes between sprints.

 Application that I am testing is just changing technologies, so I face a
 similar problem.

 Make sure your Watir code is good quality.

 The only thing that would help your tests not to break is to make the
 application testable. In this context it means: insist that all HTML
 elements that you use in your tests have IDs (where ever possible), and
 insist that IDs do not change (without a good reason). Then you can use
 element ID to access the element and no matter where the element is located
 on the page.

 If the functionality changes dramatically from sprint to sprint (and not
 just rearranging elements on the page), then there is not other way than to
 fix tests.

 Ž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


-- 
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] when HTML code changes to often

2010-08-03 Thread Željko Filipin
2010/8/3 Sharma Vishav sharma.vis...@gmail.com
 using element ID would be able to access element, as long as the
 element ID and the frame it was defined originally does not change.

Exactly. There is not much you can do if the application changes a lot, but
even then fixing the tests would be easier if the element had the same ID,
but was just in another frame. Even if element type changes but not the
functionality (for example it used to be button, but now it is checkbox), if
the ID was the same, fixing the test would be easier and faster.

Did I answer the question?

Ž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] Calendar Click

2010-08-03 Thread Padma Reddy
Ok.
I am not sure of this.
Actually i faced the same problem when i was executing ruby script on my
windows machine and trying to connect to the database of a linux machine and
this problem got solved when i installed mysql my local machine (in addition
to mysql gem)

On Tue, Aug 3, 2010 at 3:53 PM, madhu kumar madhu@gmail.com wrote:

 Hi Padma,

   Mysql is there its listed as Mysql 2.8.1 *86-mingw32 when i give the
 command gem list.

 Regards,
 Madhu




 On Tue, Aug 3, 2010 at 3:42 PM, Padma Reddy padmaj...@gmail.com wrote:

  You might not have installed mysql.
 check if mysql is there in the list displayed using 'gem list'
   On Tue, Aug 3, 2010 at 3:34 PM, madhu kumar madhu@gmail.comwrote:

 Hi padma,

 if i type require 'mysql' its coming no such file to load. can i know
 whats the proble.

 Regards,
 Madhu


 On Tue, Aug 3, 2010 at 2:56 PM, Padma Reddy padmaj...@gmail.com wrote:

  Hi Madhu,

 Make sure that mysql is installed on the machine from where you want to
 execute the ruby script.
 Do 'gem install mysql' (if this dont work, download mysql and then
 install).  ( 'gem list' check if mysql is there)

 try this in your script:

 require 'mysql'
 my = Mysql.new('IP', 'mysql username', 'password', 'database name')

 Hope this will help you.

   On Tue, Aug 3, 2010 at 2:41 PM, madhu kumar madhu@gmail.comwrote:

 HI,

   Can anyone let me know how to connect to mysql database using Ruby.

 Regards,
 Madhu


 On Tue, Aug 3, 2010 at 2:19 PM, Željko Filipin 
 zeljko.fili...@wa-research.ch wrote:

 2010/8/3 madhu kumar madhu@gmail.com

This is travel site just go through this Link www.cleartrip.com

 And you really thought it would be easier for us to debug your problem
 with screen shot, instead of sending us the URL?!

 See how fast you got the answer once you have sent the URL?

 require rubygems
 require watir
 browser = Watir::Browser.start(http://www.cleartrip.com/;)
 browser.image(:alt = Calendar).click
 browser.cell(:text = 4).link(:index = 1).click
 # 4/8/2010 is selected

 Ž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.comwatir-general%2bunsubscr...@googlegroups.com





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

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


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

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




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

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


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

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


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

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


Re: [wtr-general] identify elements in goggle mail box

2010-08-03 Thread Željko Filipin
On Tue, Aug 3, 2010 at 1:11 PM, Sharma Vishav sharma.vis...@gmail.com
wrote:
 1.how does I click a drop down box in this menu bar, e.g More actions
menu.

Gmail is hard to automate. If you are looking for application to practice
Watir skills, use basic HTML Gmail view (link at the bottom of the screen).

Ž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] when HTML code changes to often

2010-08-03 Thread Sharma Vishav
yes you did answer my question

thank you very much

On Tue, Aug 3, 2010 at 11:23 PM, Željko Filipin
zeljko.fili...@wa-research.ch wrote:
 2010/8/3 Sharma Vishav sharma.vis...@gmail.com
 using element ID would be able to access element, as long as the
 element ID and the frame it was defined originally does not change.

 Exactly. There is not much you can do if the application changes a lot, but
 even then fixing the tests would be easier if the element had the same ID,
 but was just in another frame. Even if element type changes but not the
 functionality (for example it used to be button, but now it is checkbox), if
 the ID was the same, fixing the test would be easier and faster.

 Did I answer the question?

 Ž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


-- 
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] when HTML code changes to often

2010-08-03 Thread Željko Filipin
On Tue, Aug 3, 2010 at 1:27 PM, Sharma Vishav sharma.vis...@gmail.com
wrote:
 yes you did answer my question

I forgot to say before, it is possible to automate tests even when
developers do not care about testability (and/or having automated tests),
but automation will be a lot easier if developers cared about it.

Ž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] identify elements in goggle mail box

2010-08-03 Thread Sharma Vishav
I posted this example as a specific case to know what methods/tools
you use when IE developer tool bar does not allow you to identify page
elements.
You come across such cases in your day to day work. I found this Gmail
inbox as a good generic example. So help on this would be appreciated

thanks


On Tue, Aug 3, 2010 at 11:26 PM, Željko Filipin
zeljko.fili...@wa-research.ch wrote:
 On Tue, Aug 3, 2010 at 1:11 PM, Sharma Vishav sharma.vis...@gmail.com
 wrote:
 1.how does I click a drop down box in this menu bar, e.g More actions
 menu.

 Gmail is hard to automate. If you are looking for application to practice
 Watir skills, use basic HTML Gmail view (link at the bottom of the screen).

 Ž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


-- 
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] identify elements in goggle mail box

2010-08-03 Thread Željko Filipin
2010/8/3 Sharma Vishav sharma.vis...@gmail.com
 I posted this example as a specific case to know what methods/tools
 you use when IE developer tool bar does not allow you to identify page
 elements.

I have noticed that problem from time to time. I have a virtual machine with
all major browsers installed, and there is a tool similar to IE developer
toolbar for each of them. I use Firebug for Firefox a lot, and there are
similar tools for Safari, Chrome and Opera, some of them even have the tools
installed by default (can not remember exactly at the moment). So, if IE
developer toolbar does not help, try another tool.

Ž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: Calendar Click

2010-08-03 Thread madhu kumar
Ok but two calendars are there in that website, we can use this one for one
calendar, how can i recognise second one. Please help me.

On Tue, Aug 3, 2010 at 2:18 PM, gs grzegorz.q...@googlemail.com wrote:

 Hi,

 After investigation on the  www.cleartrip.com page:
 to click the calendar:

 ie.image(:alt, Calendar).click

 and to click on exact day :

 ie.link(:text, 12).click


 (try to user firebug under firefox to find the element you would like
 to work with or iedeveloper tool bar)
 Worked for me.

 Br,
 GS


 On Aug 3, 7:10 am, madhu kumar madhu@gmail.com wrote:
  HI Pallavi,
 
This is travel site just go through this Linkwww.cleartrip.com, in
 main
  page only calendar available. and i dont want to put the date directly. I
 am
  trying to select from calendar only.
 
  Regards,
  Madhu
 
  2010/8/2 Pallavi Sharma write2pall...@gmail.com
 
 
 
   Hi Madhu
 
   Can't you directly type in your text box for date? Is it disabled?
 Looks
   like a travel site, if the link available online which is public which
 we
   can try..
 
   Calrendar's are usually div objects.
 
   Send us the html of the calendar div and your page, that might give
 more
   information.
 
   Regards
   Pallavi
 
   On Mon, Aug 2, 2010 at 4:51 PM, madhu kumar madhu@gmail.com
 wrote:
 
   Hi,
 
I attached the screenshot, just let me know how to click the calendar
   from mouse click using watir.
 
   Regards,
   Madhu
 
   On Mon, Aug 2, 2010 at 4:11 PM, Željko Filipin 
   zeljko.fili...@wa-research.ch wrote:
 
   On Mon, Aug 2, 2010 at 12:34 PM, madhu kumar madhu@gmail.com
   wrote:
 Hi have a calendar in my webpage, and i intalled watir recorder
 
   Watir recorder is not supported here. Please post to their support
 forum.
   Let me know if you can not find it.
 
   If you would like to automate calendar with Watir, you will have to
   provide more information.
 
   Ž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
 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
 
--
   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


Re: [wtr-general] Re: Calendar Click

2010-08-03 Thread Željko Filipin
2010/8/3 madhu kumar madhu@gmail.com
 Ok but two calendars are there in that website, we can use this one for
one calendar, how can i recognise second one.

This should work:

browser.image(:alt = Calendar, :index = 2).click

but something is wrong with the page, I can not get the second calendar to
show up even manually.

Ž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: Calendar Click

2010-08-03 Thread madhu kumar
That command is not working. just check the website www.cleartrip.com and
please let me know. and i used this command to recognize one calendar, and i
need to recognize one more.
b.image(:src, /images/global/calendar_icon.gif).click
b.link(:text, 5).click
Regards,
Madhu


On Tue, Aug 3, 2010 at 6:14 PM, Željko Filipin 
zeljko.fili...@wa-research.ch wrote:

 2010/8/3 madhu kumar madhu@gmail.com

  Ok but two calendars are there in that website, we can use this one for
 one calendar, how can i recognise second one.

 This should work:

 browser.image(:alt = Calendar, :index = 2).click

 but something is wrong with the page, I can not get the second calendar to
 show up even manually.

 Ž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: Calendar Click

2010-08-03 Thread Željko Filipin
On Tue, Aug 3, 2010 at 3:02 PM, madhu kumar madhu@gmail.com wrote:
 That command is not working. just check the website www.cleartrip.com

I was there, but I the second calendar is not displayed even when I try it
manually (I have clicked the calendar icon). I have tried with IE 8 and FF
3.6.8. Does it work for you manually?

Ž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


[wtr-general] Re: Calendar Click

2010-08-03 Thread gs
Hi,

Second calendar works but first the radio button Round trip needs to
be clicked :)

Br,
GS

On Aug 3, 3:05 pm, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 On Tue, Aug 3, 2010 at 3:02 PM, madhu kumar madhu@gmail.com wrote:
  That command is not working. just check the websitewww.cleartrip.com

 I was there, but I the second calendar is not displayed even when I try it
 manually (I have clicked the calendar icon). I have tried with IE 8 and FF
 3.6.8. Does it work for you manually?

 Ž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


[wtr-general] Re: Calendar Click

2010-08-03 Thread Super Kevy
The question also needs  to be asked: Does this functionality need
critical assesment through test automation or is it more appropriately
validated by a manual test.

Give the it the Tosh.0 breakdown.
- I need to only input a date and then move on (im just submitting a
form)
- I need to check the calendar control allows me to select a year min
and max range
- Its a third party control I need to validate we didnt acquire a bad
product
- Its an inhouse created object that has no unit test associated with
it

Regards


On Aug 3, 3:49 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 2010/8/3 madhu kumar madhu@gmail.com

    This is travel site just go through this Linkwww.cleartrip.com

 And you really thought it would be easier for us to debug your problem with
 screen shot, instead of sending us the URL?!

 See how fast you got the answer once you have sent the URL?

 require rubygems
 require watir
 browser = Watir::Browser.start(http://www.cleartrip.com/;)
 browser.image(:alt = Calendar).click
 browser.cell(:text = 4).link(:index = 1).click
 # 4/8/2010 is selected

 Ž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


[wtr-general] Re: when HTML code changes to often

2010-08-03 Thread Chuck van der Linden
What Z is saying here is that you need to address the problem of the
brittle UI with the developers.  If you explain the testability issue
to them, its often possible to work out an agreement that they will do
something like leave the ID values the same (all the while that they
move stuff around, change classes, etc etc)..

That way they can pretty much re-design to their hearts content, as
long as they leave the ID for the elements the same.  They can change
the name, or the class or the location on the screen or nearly
anything they like, as long as they leave the ID unchanged.  Then as
long as the element is still on the page, still active, and performs
the same basic function as before, your tests should continue to work.

ID's (at least I find) seem to be ideal for this since they are
supposed to be unique within a page, and as a result Watir is pretty
robust about returning an element (even sometimes if the element type
has changed) to you as long as the specified ID is found.


On Aug 3, 4:29 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 On Tue, Aug 3, 2010 at 1:27 PM, Sharma Vishav sharma.vis...@gmail.com
 wrote:

  yes you did answer my question

 I forgot to say before, it is possible to automate tests even when
 developers do not care about testability (and/or having automated tests),
 but automation will be a lot easier if developers cared about it.

 Ž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


[wtr-general] Curious browser behavior: Firefox browser won't close on some pages but will everywhere else

2010-08-03 Thread Schase
I'm writing automated test code for a web application under
development.  All is well when I work on my development box and the
code behaves as expected when I run it there.  Once the test code is
stabilized I check it in and it runs on a scheduled server.  It has
been displaying strange behavior there.  If the test ends with the
browser open at a particular page, the command @browser.close doesn't
work and I get the following error:

NoMethodError: undefined method `' for nil:NilClass
c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/
firefox.rb:315:in `close'
../main_test_setup.rb:73:in `teardown'
(eval):3:in `each_without_optional_block'
(eval):3:in `each'
(eval):3:in `each_without_optional_block'
(eval):3:in `each'


However, if I add a line that will click a link on that page that
returns it to a different page of the application, @browser.close
works just fine.  This is also only a problem with Firefox.  I checked
the source code for FireWatir::firefox.rb and it appears that it is
not finding the window that is there (even though it can find the link
on the page to click and get back to the working part of the
application!)
Dev box: Windows Server 2003 R2 x64 Standard edition service pack 2
Scheduled Run box: XP Pro 2002 service pack 3

My test classes all inherit from Watir::TestCase

Any suggestions on how I might debug this will be greatly appreciated.

-- 
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] Curious browser behavior: Firefox browser won't close on some pages but will everywhere else

2010-08-03 Thread Basim Baassiri
HI Schase,

I had the same problem (method wasn't returning the named windows which
causes the exception) and I switched to vapir which solved my problem

Not much of a suggestion but it is my experience

Basim

On Tue, Aug 3, 2010 at 2:53 PM, Schase promac...@gmail.com wrote:

 I'm writing automated test code for a web application under
 development.  All is well when I work on my development box and the
 code behaves as expected when I run it there.  Once the test code is
 stabilized I check it in and it runs on a scheduled server.  It has
 been displaying strange behavior there.  If the test ends with the
 browser open at a particular page, the command @browser.close doesn't
 work and I get the following error:

 NoMethodError: undefined method `' for nil:NilClass
c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/
 firefox.rb:315:in `close'
../main_test_setup.rb:73:in `teardown'
(eval):3:in `each_without_optional_block'
(eval):3:in `each'
(eval):3:in `each_without_optional_block'
(eval):3:in `each'


 However, if I add a line that will click a link on that page that
 returns it to a different page of the application, @browser.close
 works just fine.  This is also only a problem with Firefox.  I checked
 the source code for FireWatir::firefox.rb and it appears that it is
 not finding the window that is there (even though it can find the link
 on the page to click and get back to the working part of the
 application!)
 Dev box: Windows Server 2003 R2 x64 Standard edition service pack 2
 Scheduled Run box: XP Pro 2002 service pack 3

 My test classes all inherit from Watir::TestCase

 Any suggestions on how I might debug this will be greatly appreciated.

 --
 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] Curious browser behavior: Firefox browser won't close on some pages but will everywhere else

2010-08-03 Thread Ethan
It is true that Vapir does not have this bug.

On Tue, Aug 3, 2010 at 15:01, Basim Baassiri ba...@baassiri.ca wrote:

 HI Schase,

 I had the same problem (method wasn't returning the named windows which
 causes the exception) and I switched to vapir which solved my problem

 Not much of a suggestion but it is my experience

 Basim


 On Tue, Aug 3, 2010 at 2:53 PM, Schase promac...@gmail.com wrote:

 I'm writing automated test code for a web application under
 development.  All is well when I work on my development box and the
 code behaves as expected when I run it there.  Once the test code is
 stabilized I check it in and it runs on a scheduled server.  It has
 been displaying strange behavior there.  If the test ends with the
 browser open at a particular page, the command @browser.close doesn't
 work and I get the following error:

 NoMethodError: undefined method `' for nil:NilClass
c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/
 firefox.rb:315:in `close'
../main_test_setup.rb:73:in `teardown'
(eval):3:in `each_without_optional_block'
(eval):3:in `each'
(eval):3:in `each_without_optional_block'
(eval):3:in `each'


 However, if I add a line that will click a link on that page that
 returns it to a different page of the application, @browser.close
 works just fine.  This is also only a problem with Firefox.  I checked
 the source code for FireWatir::firefox.rb and it appears that it is
 not finding the window that is there (even though it can find the link
 on the page to click and get back to the working part of the
 application!)
 Dev box: Windows Server 2003 R2 x64 Standard edition service pack 2
 Scheduled Run box: XP Pro 2002 service pack 3

 My test classes all inherit from Watir::TestCase

 Any suggestions on how I might debug this will be greatly appreciated.

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

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


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

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


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

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


Re: [wtr-general] Re: Calendar Click

2010-08-03 Thread madhu kumar
Hi guys,
have u got any result,(www.cleartrip.com) Please tell me.
Regards,
Madhu

On Tue, Aug 3, 2010 at 7:21 PM, Super Kevy kpe...@scholarshipamerica.orgwrote:

 The question also needs  to be asked: Does this functionality need
 critical assesment through test automation or is it more appropriately
 validated by a manual test.

 Give the it the Tosh.0 breakdown.
 - I need to only input a date and then move on (im just submitting a
 form)
 - I need to check the calendar control allows me to select a year min
 and max range
 - Its a third party control I need to validate we didnt acquire a bad
 product
 - Its an inhouse created object that has no unit test associated with
 it

 Regards


 On Aug 3, 3:49 am, Željko Filipin zeljko.fili...@wa-research.ch
 wrote:
  2010/8/3 madhu kumar madhu@gmail.com
 
 This is travel site just go through this Linkwww.cleartrip.com
 
  And you really thought it would be easier for us to debug your problem
 with
  screen shot, instead of sending us the URL?!
 
  See how fast you got the answer once you have sent the URL?
 
  require rubygems
  require watir
  browser = Watir::Browser.start(http://www.cleartrip.com/;)
  browser.image(:alt = Calendar).click
  browser.cell(:text = 4).link(:index = 1).click
  # 4/8/2010 is selected
 
  Ž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