On Mon, May 23, 2011 at 5:21 PM, Ashok T. <tulachanashok / gmail.com> wrote:
> Thank you very much Jesus again for your reply.
>
> When i looked at the ruby doc, it says how and what means the ID of the
> object and it's name.
>
> so here's my code that i wrote
>
> Table.rows.each do |row|
>
> if row[4].text!=3D ""
>
> row[5].select_list(:id, /GridList/).select("Value from the dropdown")
>
> end
>
> end
>
> But i'm still getting the error message as shown below.
>
> C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.2.3/lib/watir-webdr=
iver/elements/element.rb:241:in
> `assert_exists': unable to locate element, using
> {:id=3D>/dispositionList/, :tag_name=3D>"select"}
> (Watir::Exception::UnknownObjectException)
> =A0from
> C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.2.3/lib/watir-webdr=
iver/elements/select.rb:125:in
> `select_by'
> =A0from
> C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.2.3/lib/watir-webdr=
iver/elements/select.rb:64:in
> `select'
> =A0from C:/Watir Scripts/Project/Credit.rb:60:in `block in
> liability_report'
> =A0from
> C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.2.3/lib/watir-webdr=
iver/element_collection.rb:21:in
> `each'
> =A0from
> C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.2.3/lib/watir-webdr=
iver/element_collection.rb:21:in
> `each'
> =A0from C:/Watir Scripts/Project/Credit.rb:58:in `liability_report'
> =A0from driver.rb:36:in `run'
> =A0from driver.rb:42:in `<main>'

Well, it looks like in your Credit.rb, in line 58 you are looking for
an element with id matching /dispositionList/, and it can't find it.
We can't help more without looking at the HTML page you are parsing,
and the exact code you are using.

Jesus.