[wtr-general] What does undefined value mean in JavaScript?

2008-12-13 Thread raj


What does undefined value mean in JavaScript?
http://interviewdoor.com/questions-faqs/viewtopic.php?f=155t=1143

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: What is the difference between undefined value and null valu

2008-12-13 Thread Bret Pettichord

Everybody, this post is spam. This post is about PHP and is being posted 
here simply as a way to increase traffic to the interview door site, not 
to help the Watir community. Could some one please block the poster from 
this list. He's done this more than once.

Bret

raj wrote:
 What is the difference between undefined value and null valu
 http://interviewdoor.com/questions-faqs/viewtopic.php?f=155t=1144


   


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: What is the difference between undefined value and null valu

2008-12-13 Thread Charley Baker
Done.

On Sat, Dec 13, 2008 at 9:36 AM, Bret Pettichord b...@pettichord.comwrote:


 Everybody, this post is spam. This post is about PHP and is being posted
 here simply as a way to increase traffic to the interview door site, not
 to help the Watir community. Could some one please block the poster from
 this list. He's done this more than once.

 Bret

 raj wrote:
  What is the difference between undefined value and null valu
  http://interviewdoor.com/questions-faqs/viewtopic.php?f=155t=1144
 
 
 


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: set watir_browser=ie is not working

2008-12-13 Thread Margam

HI marekj,
Thanks for the pointers. I think in a way I was using two command
prompts.
One to set the browser, and then I ran the script fromt SciTE (by
pressing F5). So I guess that's why it was not working.

When I used just one command prompt (to set browser and run the
script, everything is OK), the script works fine with both IE and FF.
Thank you everyone for the all the replies.

Margam

On Dec 12, 11:08 pm, marekj marekj@gmail.com wrote:
 On Thu, Dec 11, 2008 at 6:14 PM, Margam nk.mar...@gmail.com wrote:

  Hi John,
  So I tried using require 'watir/browser'  in my script and set
  watir_browser=ie from command prompt and everything is OK. IE is
  opened and the scripts runs fine.
  But when I type set watir_browser=firefox from command prompt and
  run the script, IE is still used. Firefox is not launched.
  Am I doing something wrong.

 one of two things may be happening:

 1) I wonder if you are using two cmd terminals.
 The problem with set command on windows is that the whatever you set lasts
 only for the duration of the process you are running in that one terminal
 window.
 So if you set watir_browser=firefox in terminal window 1 and run ruby script
 in terminal window 2 it will not know to run it on firefox.

 2) or when you type set watir_browser=firefox you can' t have any spaces
 so the following is incorrect 'set watir_browser = firefox'

 marekj

 Also for the time being I am doing to just change the default browser

  from the script itself (which works fine).

  Thank you
  Margam

  On Dec 11, 9:46 am, John Fitisoff jfitis...@yahoo.com wrote:
   I think the problem is that you are requiring watir rather than
  watir/browser. Something like this should work:

   require 'rubygems'
   require 'watir/browser'
   set watir_browser=ie
   browser = Watir::Browser.new
   browser.goto(http://www.hotmail.com;)

   --- On Wed, 12/10/08, Margam nk.mar...@gmail.com wrote:

From: Margam nk.mar...@gmail.com
Subject: [wtr-general] set watir_browser=ie is not working
To: Watir General watir-general@googlegroups.com
Date: Wednesday, December 10, 2008, 4:45 PM
HI All,
I am trying to write one script that will work on both IE
and FF. As
per the link:
   http://wiki.openqa.org/display/WTR/Browser.new

I am trying to use the set watir_browser=ie
command and
Watir::Browser.new

The code is :
--
require 'rubygems'
require 'watir'

set watir_browser=ie
browser = Watir::Browser.new
browser.goto(http://www.hotmail.com;)
--

But keep getting the following error:
-
 undefined method `set' for main:Object (NoMethodError)
-
What am I doing wrong? Should I require any other library?

Thank you.
Margam
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: click image for given DIV ID

2008-12-13 Thread Bret Pettichord

No.

Shiv wrote:
 Bret

 Since we have customiztion on the 1.4 watir code, we not able to
 upgrade now. is there any tweak?

 Thanks
 Shiv
 On Dec 12, 7:20 am, Bret Pettichord b...@pettichord.com wrote:
   
 This is a bug in Watir 1.4. It is fixed in Watir 1.5 and Watir 1.6. Time
 to upgrade.

 Bret



 Shiv wrote:
 
 Hi,
   
  I want to click image for knownDIVID. Let say, I want to click
 image ofDIVIDf4
   
 My code is this and it doesn't work
   
 $ie.div(:id,divid).image(:src, /tag_add.png/).click
 Error: failed undefined local variable or method `document' for
 #Watir::Div:0x2c88898
   
 To elaborate more on the issue, Its html page with 20 rows and one
 them will be higlighted/selected any given time(DIVclass=file-
 titleSelected indicates it's a active/higlighted row). I want to
 click image belongs to this row.
   
 Note: I am using watri 1.4 and so I can't use multiple param support
   
 Thanks
 Shiv
   
 DIVclass=file-titleid=f1IMG src=https://k27/images/
 tag_add.png border=0 //A/DIV
 DIVclass=file-titleid=f2IMG src=https://k27/images/
 tag_add.png border=0 //A/DIV
 DIVclass=file-titleid=f3IMG src=https://k27/images/
 tag_add.png border=0 //A/DIV
 DIVclass=file-titleSelectedid=f4IMG src=https://k27/images/
 tag_add.png border=0 //A/DIV
 DIVclass=file-titleid=f5IMG src=https://k27/images/
 tag_add.png border=0 //A/DIV
 DIVclass=file-titleid=f6IMG src=https://k27/images/
 tag_add.png border=0 //A/DIV
 DIVclass=file-titleid=f7IMG src=https://k27/images/
 tag_add.png border=0 //A/DIV- Hide quoted text -
   
 - Show quoted text -
 
 
   


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---