Re: [Wtr-general] undefined method `[]' for nil:NilClass (NoMethodError) error at the end of array???
Whoever you are, you are FREAKING FUNNY and made an excellent point here:-) So, Paul, how many children do you have? Well, my first boy would be 0, and my second son would be 1, so I guess I have 1 child. Even the Cat in the Hat's best friends are Thing 1 and Thing 2. I would have like to have heard Dr. Seuss' thoughts on the topic of counting. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] undefined method `[]' for nil:NilClass (NoMethodError) error at the end of array???
sorry, i keep forgetting that the array starts at 0:-( mi wrote: t = [[a, b], [aa, bb]] 0.upto (t.length) { |x| puts t[x][0] } For some reason i'm getting the following error at the end of the loop, any idea WHY??? a aa undefined method `[]' for nil:NilClass (NoMethodError) Thanks in advance! ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] undefined method `[]' for nil:NilClass (NoMethodError) error at the end of array???
t = [[a, b], [aa, bb]] 0.upto (t.length) { |x| puts t[x][0] } For some reason i'm getting the following error at the end of the loop, any idea WHY??? a aa undefined method `[]' for nil:NilClass (NoMethodError) Thanks in advance! ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Want to run my test in slow speed??
What exactly do i have to code in Watir to run my test in slow mode so i can see what is typing during debugging?? Thanks! ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] clicking on a link using sub-text of the link text?
I tried sending my html but it was bigger then 40K so here is the link i get when i do a ie.show_links http://test.server.com/junk.php?test=junk12345http://test.server.com/junk.php?test=junk12345 So basically, the link url is repeated Zeljko Filipin wrote: It would be easier if you posted your html so we could try to click that link at our machine instead of guessing. Ċ½eljko ___ 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
[Wtr-general] clicking on a link using sub-text of the link text?
Hi all, I'm not sure whether it's even possible to do that BUT let me try asking here is a one of the link in my web page that i need to click.. content starts here... /..click below: {blank line} http://{static-text}/test.php?activate=blah, blah, blah/ I tried ie.link{:url, /static-text/).click also tried ie.link(:aftertext, 'below:').click BUT i'm not a having a luck??? Thanks in advance!!! ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] clicking on a link using sub-text of the link text?
Yes, i do see the link when i do a ie.show_links() but i'm afraid that why it might not work... show_links shows the link as similar to the below... */http://{static-text}/blah...blahhttp://{static-text}/blah..blah.../* So the same text is showing twice in the show_links printout, that might be why it's not working Xavier Noria wrote: On Jul 27, 2006, at 7:21 PM, mi wrote: here is a one of the link in my web page that i need to click.. content starts here... /..click below: {blank line} http://{static-text}/test.php?activate=blah, blah, blah/ I tried ie.link{:url, /static-text/).click also tried ie.link(:aftertext, 'below:').click BUT i'm not a having a luck??? At least the first one should work (with the typo corrected, that is). Does ie.show_links output that one? -- fxn ___ 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
[Wtr-general] Very basic Watir/Ruby question?
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] for loop syntax??
ahhh, That was it!!! I'm just NOT used to start an iteration form 0:-( THANKS a million Charley Baker wrote: Your loop is 0-9 which is 10, your arrays are only 9 items long. You've overshot it by one. for x in 0..8 do ... -Charley On 7/19/06, * Cain, Mark* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: You will need to these: require 'test/unit' require 'test/unit/ui/console/testrunner' require 'watir/testUnitAddons' require 'watir/testcase' I usually add the setup.rb from the unittest directory instead because these requires are already in it. --Mark -Original Message- From: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]] On Behalf Of mi Sent: Tuesday, July 18, 2006 4:23 PM To: wtr-general@rubyforge.org mailto:wtr-general@rubyforge.org Subject: [Wtr-general] for loop syntax?? Hi all, I'm using a for loop to access arrays to fill all the text fields in my forms. For some reason, i'm getting the following error at the end of the for loop execution??? c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1928:in `assert_exists': Unable to locate object, using name and (Watir::Exception::UnknownObjectException) from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3382:in `set' from c:/ruby/lib/ruby/site_ruby/1.8/watir/watir_simple.rb:402:in `fill_text_field' from SmokeTest.rb :25 from SmokeTest.rb:24 Thanks in advance! my code require 'watir' # the watir controller\ require 'watir/watir_simple' include Watir include Watir::Simple Simple1 = Simple test_site = 'http://dev01.pheedo.com' pubInfoTextFields = ['user', 'email', 'password', 'repass', 'url', 'ssn', 'payment_address', 'payment_city', 'payment_zip'] pubInfo = ['pubUserName', '[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]', '1', '1', 'http://www.test.com', '1234', '123 st', 'some city', '97035'] #[user name, emaildAdd, passwd1, passwd2, yourSite, TaxID, StreetAdd, CityName, State, ZipCode] Simple1.new_browser_at(test_site) Simple1.click_link_with_text(Sign up now) #same as Simple::click_link_with_text(Sign up now) #click on Publisher's sign up page Simple1.click_link_with_url(test_site+/register.phdo?mode=publish) #Enter all the required fields x=0 for x in 0..9 do Simple1.fill_text_field(pubInfoTextFields[x], pubInfo[x]) puts pubInfoTextFields = +pubInfoTextFields[x]+ pubInfo = +pubInfo[x] end ___ Wtr-general mailing list Wtr-general@rubyforge.org mailto:Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org mailto: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 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] for loop syntax??
Hi all, I'm using a for loop to access arrays to fill all the text fields in my forms. For some reason, i'm getting the following error at the end of the for loop execution??? c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1928:in `assert_exists': Unable to locate object, using name and (Watir::Exception::UnknownObjectException) from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3382:in `set' from c:/ruby/lib/ruby/site_ruby/1.8/watir/watir_simple.rb:402:in `fill_text_field' from SmokeTest.rb:25 from SmokeTest.rb:24 Thanks in advance! my code require 'watir' # the watir controller\ require 'watir/watir_simple' include Watir include Watir::Simple Simple1 = Simple test_site = 'http://dev01.pheedo.com' pubInfoTextFields = ['user', 'email', 'password', 'repass', 'url', 'ssn', 'payment_address', 'payment_city', 'payment_zip'] pubInfo = ['pubUserName', '[EMAIL PROTECTED]', '1', '1', 'http://www.test.com', '1234', '123 st', 'some city', '97035'] #[user name, emaildAdd, passwd1, passwd2, yourSite, TaxID, StreetAdd, CityName, State, ZipCode] Simple1.new_browser_at(test_site) Simple1.click_link_with_text(Sign up now) #same as Simple::click_link_with_text(Sign up now) #click on Publisher's sign up page Simple1.click_link_with_url(test_site+/register.phdo?mode=publish) #Enter all the required fields x=0 for x in 0..9 do Simple1.fill_text_field(pubInfoTextFields[x], pubInfo[x]) puts pubInfoTextFields = +pubInfoTextFields[x]+ pubInfo = +pubInfo[x] end ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general