anyone have any idea why this isnt working? (or should I be making a
new topic for this?)
for x in 0..2 do
for y in 0..9 do
numstring = x.to_s + y.to_s
puts numstring
if (browser.span(:id, Regexp.new
if (browser.span(:id, Regexp.new(rptCourses_ctl00_rptItems_ctl + numstring
+_lblItemTxtTitle)).exists?)
otherwise calling text will throw an exception trying to locate the element.
-c
On Fri, Jan 9, 2009 at 10:38 AM, Bissquitt bissqu...@gmail.com wrote:
anyone have any idea why this isnt
thank you very much, you are awesome
On Jan 9, 4:04 pm, Charley Baker charley.ba...@gmail.com wrote:
if (browser.span(:id, Regexp.new(rptCourses_ctl00_rptItems_ctl + numstring
+_lblItemTxtTitle)).exists?)
otherwise calling text will throw an exception trying to locate the element.
-c
Bissquitt,
Thank you for poking the proverbial 'beehive'. I am a Watir/Ruby
newbie too.
I've posted some really basic questions here questions on this group
as well.
My background is mainly in hardware test automation, BASIC, and VB
Script.
Kudos to all the responses to this post. I too am
ok thank you all so much. I got the majority of the code working. This
is what I have so far.
while contLoop do colVal = worksheet.Cells(row, 'a').Value
if (colVal) then
browser.goto(http://bookstore.umbc.edu/SelectCourses.aspx?
src=2type=2stoid=9trm=Spring%2009cid= + colVal)
forgot to include the code I have thus far. (currently not working do
to the Hpricot portion)
excel = WIN32OLE.new(excel.application)
excel.visible = true
workbook = excel.workbooks.open('E:\books\spring 09 classes.xls')
worksheet=workbook.worksheets(1)
contLoop = true
row = 1
while contLoop
Hi there,
I'm not sure what you mean by Ruby and Watir being poorly documented. For
Ruby, the first edition of the Pickaxe book which is comprehensive is free
and available online. There are dozens of other tutorials, sites and blogs
about Ruby. Watir also has a lot of examples, a tutorial(
Regarding documentation, I read the Tutorial all the way through but
it only hit on a few specific examples leaving out other commands all
together. I've visited MANY ruby and watir sites and never once saw
the .span command (does it just search for span tags? guess ill
google it after this post)
Michael,
A fairly rapid reply, so my apologies if it sounds a little terse. A
clearer, succinct email would be helpful, rather than unduly
elaborating on your difficulties finding things.
My immediate thought is that you are trying to run before you have
learnt to walk.
I would:
- Learn
Hi Michael,
On Sat, Jan 03, 2009 at 10:31:38AM -0800, Bissquitt wrote:
Regarding documentation, I read the Tutorial all the way through but
it only hit on a few specific examples leaving out other commands all
together. I've visited MANY ruby and watir sites and never once saw
the .span
It can be a bit overwhelming to learn Ruby and various libraries at the same
time. I'd recommend taking a look at the Pickaxe book:
http://whytheluckystiff.net/ruby/pickaxe/ just to get some general
familiarity. There are other Ruby tutorials online as well as some good
books - The Ruby Way,
11 matches
Mail list logo