Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #4285
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!talisker.lacave.net!lacave.net!not-for-mail |
|---|---|
| From | TJ Wilkes <tjwilkes@live.com> |
| Newsgroups | comp.lang.ruby |
| Subject | Re: Starting Method/Class issues |
| Date | Wed, 11 May 2011 14:28:08 -0500 |
| Organization | Service de news de lacave.net |
| Lines | 41 |
| Message-ID | <d66cc98751bf995f7fa71bc7f3edc2f3@ruby-forum.com> (permalink) |
| References | <db27adb124f75fd3cd3e99b520e711c7@ruby-forum.com> |
| NNTP-Posting-Host | bristol.highgroove.com |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | talisker.lacave.net 1305142099 38329 65.111.164.187 (11 May 2011 19:28:19 GMT) |
| X-Complaints-To | abuse@lacave.net |
| NNTP-Posting-Date | Wed, 11 May 2011 19:28:19 +0000 (UTC) |
| In-Reply-To | <db27adb124f75fd3cd3e99b520e711c7@ruby-forum.com> |
| X-Received-From | This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway |
| X-Mail-Count | 382997 |
| X-Ml-Name | ruby-talk |
| X-Rubymirror | Yes |
| X-Ruby-Talk | <d66cc98751bf995f7fa71bc7f3edc2f3@ruby-forum.com> |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.ruby:4285 |
Show key headers only | View raw
Thanks, that was exactly what I needed.
I ended up with:
def tverify(str, ie)
puts "\n"
print "Checking for text '", str, "'. "
puts "\n"
print "Actual Result: "
if ie.text.include? str
print " Test Passed. Found the string: '", str, "'. Valid"
puts "\n"
else
print " !ERROR! Test Failed! Could not find: '", str, "'."
puts "\n"
end
end
and
def lifollow(str, ie)
puts "\n"
print "Verifying ", str, ". "
puts "Actual Result:"
if ie.li(:id, str).exist?
print " Found the link: '", str, "'. Following link."
puts "\n"
ie.li(:id, str).click
sleep(1)
else
print " Test Failed! Could not find: ", str, "."
puts "\n"
end
end
Seems to be working perfectly.
Thanks everyone.
-TJ
--
Posted via http://www.ruby-forum.com/.
Back to comp.lang.ruby | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Starting Method/Class issues TJ Wilkes <tjwilkes@live.com> - 2011-05-10 12:32 -0500
Re: Starting Method/Class issues Robert Klemme <shortcutter@googlemail.com> - 2011-05-10 22:18 +0200
Re: Starting Method/Class issues 7stud -- <bbxx789_05ss@yahoo.com> - 2011-05-10 16:07 -0500
Re: Starting Method/Class issues TJ Wilkes <tjwilkes@live.com> - 2011-05-10 16:34 -0500
Re: Starting Method/Class issues 7stud -- <bbxx789_05ss@yahoo.com> - 2011-05-10 19:26 -0500
Re: Starting Method/Class issues Brian Candler <b.candler@pobox.com> - 2011-05-11 03:39 -0500
Re: Starting Method/Class issues TJ Wilkes <tjwilkes@live.com> - 2011-05-11 14:28 -0500
Re: Starting Method/Class issues 7stud -- <bbxx789_05ss@yahoo.com> - 2011-05-11 14:56 -0500
Re: Starting Method/Class issues TJ Wilkes <tjwilkes@live.com> - 2011-05-11 16:04 -0500
Re: Starting Method/Class issues 7stud -- <bbxx789_05ss@yahoo.com> - 2011-05-11 17:39 -0500
csiph-web