[Wtr-general] Undefined method getObject when attempting to do a set on a text field.

2005-08-29 Thread Stephanie Mayfield
I apologize in advance if this question has already been asked.  I'm
new to the list and the hunting and pecking in the archives didn't
turn up an answer.  (Aside: is there a search engine on the archives?)

My problem is I'm getting an error when attempting to do a very simple
assignment to a text field.

require 'WET'
include WET

ie=Browser.new()
ie.goto http://URL here
ie.show_all_objects

puts username object exists:  + ie.TextField(name:=username).to_s
ie.TextField(name:=username).set('first.last')


My output confirms that the username field does in fact exist on the page:

username object exists: WebEdit(name:=username)

But then I get this exception: 


D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3205:in `locate': undefined
method `getObject' for nil:NilClass (NoMethodError)
from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1766:in `assert_exists'
from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3368:in `set'
from D:/ruby/lib/ruby/site_ruby/1.8/qantom/webobjects/WebEdit.rb:59:in 
`set'
from D:/ruby/myRuby/AdminTest/simple.rb:9

I'm not sure if this is a WET issue or a Watir issue.  What I'm running on is: 
-   Win XP
-   Watir v1.4
-   WET v0.5.1 (for water v1.4, doesn't include the optional component)

Watir by itself access the website just fine, however I have
JavaScript pop-ups so I'm attempting to use WET to access those.

The URL and username do not contain any extended characters.

Assistance is greatly appreciated!

-- 
Steph
Homepage: www.maesah.ca

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


Re: [Wtr-general] Undefined method getObject when attempting to do a set on a text field.

2005-08-29 Thread Raghu Venkataramana

Hi Stephanie,

Are you using a released version of Watir 1.4 or something off the SCM 
repository?


I was trying to locate the source of the problem from your stack trace:

from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1766:in `assert_exists'
from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3368:in `set'

and in the version(s) of Watir1.4 that I have, I could not find neither
assert_exists method in line number 1766 nor 'set' method at 3368. If you 
are using a version from the SCM could you tell me the exact revision number
so that I could check the same version out here and try it. 


Thanks
Raghu




Stephanie Mayfield wrote:


I apologize in advance if this question has already been asked.  I'm
new to the list and the hunting and pecking in the archives didn't
turn up an answer.  (Aside: is there a search engine on the archives?)

My problem is I'm getting an error when attempting to do a very simple
assignment to a text field.

require 'WET'
include WET

ie=Browser.new()
ie.goto http://URL here
ie.show_all_objects

puts username object exists:  + ie.TextField(name:=username).to_s
ie.TextField(name:=username).set('first.last')


My output confirms that the username field does in fact exist on the page:

username object exists: WebEdit(name:=username)

But then I get this exception: 



D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3205:in `locate': undefined
method `getObject' for nil:NilClass (NoMethodError)
from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1766:in `assert_exists'
from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3368:in `set'
from D:/ruby/lib/ruby/site_ruby/1.8/qantom/webobjects/WebEdit.rb:59:in 
`set'
from D:/ruby/myRuby/AdminTest/simple.rb:9

I'm not sure if this is a WET issue or a Watir issue.  What I'm running on is: 
-	Win XP

-   Watir v1.4
-   WET v0.5.1 (for water v1.4, doesn't include the optional component)

Watir by itself access the website just fine, however I have
JavaScript pop-ups so I'm attempting to use WET to access those.

The URL and username do not contain any extended characters.

Assistance is greatly appreciated!

 




--
Qantom Software

http://www.qantom.com
Ph : 26799269 Xtn. 125
sip : [EMAIL PROTECTED]
--

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


Re: [Wtr-general] Undefined method getObject when attempting to do a set on a text field.

2005-08-29 Thread Stephanie Mayfield
Raghu,

I installed 1.4 originally then I overwrote that installation via the
gem.  The gem is listed as 1.4.1.
Thanks for looking into this!

Steph


On 8/29/05, Raghu Venkataramana [EMAIL PROTECTED] wrote:
 Hi Stephanie,
 
 Are you using a released version of Watir 1.4 or something off the SCM
 repository?
 
 I was trying to locate the source of the problem from your stack trace:
 
 from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1766:in `assert_exists'
 from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3368:in `set'
 
 and in the version(s) of Watir1.4 that I have, I could not find neither
 assert_exists method in line number 1766 nor 'set' method at 3368. If you
 are using a version from the SCM could you tell me the exact revision number
 so that I could check the same version out here and try it.
 
 Thanks
 Raghu
 
 
 
 
 Stephanie Mayfield wrote:
 
 I apologize in advance if this question has already been asked.  I'm
 new to the list and the hunting and pecking in the archives didn't
 turn up an answer.  (Aside: is there a search engine on the archives?)
 
 My problem is I'm getting an error when attempting to do a very simple
 assignment to a text field.
 
 require 'WET'
 include WET
 
 ie=Browser.new()
 ie.goto http://URL here
 ie.show_all_objects
 
 puts username object exists:  + ie.TextField(name:=username).to_s
 ie.TextField(name:=username).set('first.last')
 
 
 My output confirms that the username field does in fact exist on the page:
 
 username object exists: WebEdit(name:=username)
 
 But then I get this exception:
 
 
 D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3205:in `locate': undefined
 method `getObject' for nil:NilClass (NoMethodError)
from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1766:in `assert_exists'
from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3368:in `set'
from 
  D:/ruby/lib/ruby/site_ruby/1.8/qantom/webobjects/WebEdit.rb:59:in `set'
from D:/ruby/myRuby/AdminTest/simple.rb:9
 
 I'm not sure if this is a WET issue or a Watir issue.  What I'm running on 
 is:
 -  Win XP
 -  Watir v1.4
 -  WET v0.5.1 (for water v1.4, doesn't include the optional component)
 
 Watir by itself access the website just fine, however I have
 JavaScript pop-ups so I'm attempting to use WET to access those.
 
 The URL and username do not contain any extended characters.
 
 Assistance is greatly appreciated!
 
 
 
 
 
 --
 Qantom Software
 
 http://www.qantom.com
 Ph : 26799269 Xtn. 125
 sip : [EMAIL PROTECTED]
 --
 
 ___
 Wtr-general mailing list
 Wtr-general@rubyforge.org
 http://rubyforge.org/mailman/listinfo/wtr-general
 


-- 
Steph
Homepage: www.maesah.ca

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


Re: [Wtr-general] Undefined method getObject when attempting to do a set on a text field.

2005-08-29 Thread Raghu Venkataramana

Hi Stephanie,

This is getting intersting. I just did a gem install of watir myself, 
but still

couldn't find the method 'locate' as shown by:

D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3205:in 
`locate': undefined


However I got the latest version HEAD version from cvs
repository and that version _does_ have the locate method
that is giving you the trouble. I took a quick look at that 
code and unfortunately wet's current version wont work 
with that implementation. For the current version of WET 
you need to make sure that you use the version that got 
installed off from the gem and not the CVS version. 

Your best bet may be to simply copy the Watir.rb from 
d:\ruby\lib\ruby\gems\1.8\gems\watir-1.4.1.rb to 
D:/ruby/lib/ruby/site_ruby/1.8/watir.rb 


Thanks
Raghu





Stephanie Mayfield wrote:


Raghu,

I installed 1.4 originally then I overwrote that installation via the
gem.  The gem is listed as 1.4.1.
Thanks for looking into this!

Steph


On 8/29/05, Raghu Venkataramana [EMAIL PROTECTED] wrote:
 


Hi Stephanie,

Are you using a released version of Watir 1.4 or something off the SCM
repository?

I was trying to locate the source of the problem from your stack trace:

   from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1766:in `assert_exists'
   from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3368:in `set'

and in the version(s) of Watir1.4 that I have, I could not find neither
assert_exists method in line number 1766 nor 'set' method at 3368. If you
are using a version from the SCM could you tell me the exact revision number
so that I could check the same version out here and try it.

Thanks
Raghu




Stephanie Mayfield wrote:

   


I apologize in advance if this question has already been asked.  I'm
new to the list and the hunting and pecking in the archives didn't
turn up an answer.  (Aside: is there a search engine on the archives?)

My problem is I'm getting an error when attempting to do a very simple
assignment to a text field.

require 'WET'
include WET

ie=Browser.new()
ie.goto http://URL here
ie.show_all_objects

puts username object exists:  + ie.TextField(name:=username).to_s
ie.TextField(name:=username).set('first.last')


My output confirms that the username field does in fact exist on the page:

username object exists: WebEdit(name:=username)

But then I get this exception:


D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3205:in `locate': undefined
method `getObject' for nil:NilClass (NoMethodError)
 from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1766:in `assert_exists'
 from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3368:in `set'
 from D:/ruby/lib/ruby/site_ruby/1.8/qantom/webobjects/WebEdit.rb:59:in 
`set'
 from D:/ruby/myRuby/AdminTest/simple.rb:9

I'm not sure if this is a WET issue or a Watir issue.  What I'm running on is:
-  Win XP
-  Watir v1.4
-  WET v0.5.1 (for water v1.4, doesn't include the optional component)

Watir by itself access the website just fine, however I have
JavaScript pop-ups so I'm attempting to use WET to access those.

The URL and username do not contain any extended characters.

Assistance is greatly appreciated!



 


--
Qantom Software

http://www.qantom.com
Ph : 26799269 Xtn. 125
sip : [EMAIL PROTECTED]
--

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

   




 




--
Qantom Software

http://www.qantom.com
Ph : 26799269 Xtn. 125
sip : [EMAIL PROTECTED]
--

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


Re: [Wtr-general] Undefined method getObject when attempting to do a set on a text field.

2005-08-29 Thread Stephanie Mayfield
Raghu,

My simple case works!  But I had to replace all the .rb files from the
gem, not just the watir one. I have no idea how I got the CVS version
of Watir installed.  Thanks so much for the help!

Steph



On 8/29/05, Raghu Venkataramana [EMAIL PROTECTED] wrote:
 Hi Stephanie,
 
 This is getting intersting. I just did a gem install of watir myself,
 but still
 couldn't find the method 'locate' as shown by:
 
 D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3205:in
 `locate': undefined
 
 However I got the latest version HEAD version from cvs
 repository and that version _does_ have the locate method
 that is giving you the trouble. I took a quick look at that
 code and unfortunately wet's current version wont work
 with that implementation. For the current version of WET
 you need to make sure that you use the version that got
 installed off from the gem and not the CVS version.
 
 Your best bet may be to simply copy the Watir.rb from
 d:\ruby\lib\ruby\gems\1.8\gems\watir-1.4.1.rb to
 D:/ruby/lib/ruby/site_ruby/1.8/watir.rb
 
 Thanks
 Raghu
 
 
 
 
 
 Stephanie Mayfield wrote:
 
 Raghu,
 
 I installed 1.4 originally then I overwrote that installation via the
 gem.  The gem is listed as 1.4.1.
 Thanks for looking into this!
 
 Steph
 
 
 On 8/29/05, Raghu Venkataramana [EMAIL PROTECTED] wrote:
 
 
 Hi Stephanie,
 
 Are you using a released version of Watir 1.4 or something off the SCM
 repository?
 
 I was trying to locate the source of the problem from your stack trace:
 
 from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1766:in `assert_exists'
 from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3368:in `set'
 
 and in the version(s) of Watir1.4 that I have, I could not find neither
 assert_exists method in line number 1766 nor 'set' method at 3368. If you
 are using a version from the SCM could you tell me the exact revision number
 so that I could check the same version out here and try it.
 
 Thanks
 Raghu
 
 
 
 
 Stephanie Mayfield wrote:
 
 
 
 I apologize in advance if this question has already been asked.  I'm
 new to the list and the hunting and pecking in the archives didn't
 turn up an answer.  (Aside: is there a search engine on the archives?)
 
 My problem is I'm getting an error when attempting to do a very simple
 assignment to a text field.
 
 require 'WET'
 include WET
 
 ie=Browser.new()
 ie.goto http://URL here
 ie.show_all_objects
 
 puts username object exists:  + ie.TextField(name:=username).to_s
 ie.TextField(name:=username).set('first.last')
 
 
 My output confirms that the username field does in fact exist on the page:
 
 username object exists: WebEdit(name:=username)
 
 But then I get this exception:
 
 
 D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3205:in `locate': undefined
 method `getObject' for nil:NilClass (NoMethodError)
   from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1766:in `assert_exists'
   from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3368:in `set'
   from 
  D:/ruby/lib/ruby/site_ruby/1.8/qantom/webobjects/WebEdit.rb:59:in `set'
   from D:/ruby/myRuby/AdminTest/simple.rb:9
 
 I'm not sure if this is a WET issue or a Watir issue.  What I'm running on 
 is:
 -  Win XP
 -  Watir v1.4
 -  WET v0.5.1 (for water v1.4, doesn't include the optional component)
 
 Watir by itself access the website just fine, however I have
 JavaScript pop-ups so I'm attempting to use WET to access those.
 
 The URL and username do not contain any extended characters.
 
 Assistance is greatly appreciated!
 
 
 
 
 
 --
 Qantom Software
 
 http://www.qantom.com
 Ph : 26799269 Xtn. 125
 sip : [EMAIL PROTECTED]
 --
 
 ___
 Wtr-general mailing list
 Wtr-general@rubyforge.org
 http://rubyforge.org/mailman/listinfo/wtr-general
 
 
 
 
 
 
 
 
 
 --
 Qantom Software
 
 http://www.qantom.com
 Ph : 26799269 Xtn. 125
 sip : [EMAIL PROTECTED]
 --
 
 ___
 Wtr-general mailing list
 Wtr-general@rubyforge.org
 http://rubyforge.org/mailman/listinfo/wtr-general
 


-- 
Steph
Homepage: www.maesah.ca

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


Re: [Wtr-general] Undefined method getObject when attempting to do a set on a text field.

2005-08-29 Thread Bret Pettichord
I'm pretty sure than none of the Watir releases included the 'locate' 
method -- that is only in head.


When we created the 1.4.1 release, we were careful to only include minor 
fixes and updates that we were pretty sure would not break WET (for 1.4).


It may be worth noting that the regular installers (either the old 1.4 and 
earlier or the new 1.4.1 one-click installer) install watir into a 
different location than the gem. I do not know what happens if watir is 
installed both ways. I suspect that one would overrule the other, but i 
don't know which.


The best bet is to uninstall one version of Watir before installing a new 
version. Both of the installers for 1.4.1 have uninstall options. (Prior to 
that we didn't.)


Bret

At 10:45 AM 8/29/2005, Raghu Venkataramana wrote:

Hi Stephanie,

This is getting intersting. I just did a gem install of watir myself, but 
still

couldn't find the method 'locate' as shown by:

D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3205:in `locate': undefined

However I got the latest version HEAD version from cvs
repository and that version _does_ have the locate method
that is giving you the trouble. I took a quick look at that code and 
unfortunately wet's current version wont work with that implementation. 
For the current version of WET you need to make sure that you use the 
version that got installed off from the gem and not the CVS version.
Your best bet may be to simply copy the Watir.rb from 
d:\ruby\lib\ruby\gems\1.8\gems\watir-1.4.1.rb to 
D:/ruby/lib/ruby/site_ruby/1.8/watir.rb

Thanks
Raghu





Stephanie Mayfield wrote:


Raghu,

I installed 1.4 originally then I overwrote that installation via the
gem.  The gem is listed as 1.4.1.
Thanks for looking into this!

Steph


On 8/29/05, Raghu Venkataramana [EMAIL PROTECTED] wrote:



Hi Stephanie,

Are you using a released version of Watir 1.4 or something off the SCM
repository?

I was trying to locate the source of the problem from your stack trace:

   from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1766:in `assert_exists'
   from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3368:in `set'

and in the version(s) of Watir1.4 that I have, I could not find neither
assert_exists method in line number 1766 nor 'set' method at 3368. If you
are using a version from the SCM could you tell me the exact revision number
so that I could check the same version out here and try it.

Thanks
Raghu




Stephanie Mayfield wrote:




I apologize in advance if this question has already been asked.  I'm
new to the list and the hunting and pecking in the archives didn't
turn up an answer.  (Aside: is there a search engine on the archives?)

My problem is I'm getting an error when attempting to do a very simple
assignment to a text field.

require 'WET'
include WET

ie=Browser.new()
ie.goto http://URL here
ie.show_all_objects

puts username object exists:  + ie.TextField(name:=username).to_s
ie.TextField(name:=username).set('first.last')


My output confirms that the username field does in fact exist on the page:

username object exists: WebEdit(name:=username)

But then I get this exception:


D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3205:in `locate': undefined
method `getObject' for nil:NilClass (NoMethodError)
 from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1766:in `assert_exists'
 from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3368:in `set'
 from 
D:/ruby/lib/ruby/site_ruby/1.8/qantom/webobjects/WebEdit.rb:59:in `set'

 from D:/ruby/myRuby/AdminTest/simple.rb:9

I'm not sure if this is a WET issue or a Watir issue.  What I'm running 
on is:

-  Win XP
-  Watir v1.4
-  WET v0.5.1 (for water v1.4, doesn't include the optional component)

Watir by itself access the website just fine, however I have
JavaScript pop-ups so I'm attempting to use WET to access those.

The URL and username do not contain any extended characters.

Assistance is greatly appreciated!





--
Qantom Software

http://www.qantom.com
Ph : 26799269 Xtn. 125
sip : [EMAIL PROTECTED]
--

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









--
Qantom Software

http://www.qantom.com
Ph : 26799269 Xtn. 125
sip : [EMAIL PROTECTED]
--

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


_
 Bret Pettichord
 www.pettichord.com

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