Hi there,

I had to modify Watir to read <th> tags. You could apply this to <ol>
and <ul>. Here's what you do:

1. Go to C:\Ruby\lib\ruby\gems\1.8\gems\watir-1.6.5 (or whatever
version you're running)\lib\watir\non_control_elements.rb

2. Insert the following into your code:

class OL < NonControlElement
  TAG = 'OL'
end
class UL < NonControlElement
  TAG = 'UL'
end

You *should* be able to read any text within those tags, although I
haven't tested this. This worked for me when reading the <th> tags.
Good luck!

-George


On Sep 28, 7:09 am, Mark Winteringham <winteringham.m...@gmail.com>
wrote:
> Hi,
>
> I just wanted to find out if Watir handles <ol> tags since it can
> handle <ul> tags.  Tried googling briefly and didn't see anything.
>
> Cheers
>
> Mark

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

Reply via email to