Ruby/watir question

hi,

i am trying to click a tab on a web page and the source reveals this as
the entry (within a table):

  • Planning
  • can anyone tell me the ruby/watir code to click this?

    thanks

    newyorkdolluk wrote:

  • Planning
  • can anyone tell me the ruby/watir code to click this?

    Did you try my suggestion (Watir::Simple::click_link_with_name()) from
    the
    other newsgroup?

    had a play with it, but can’t seem to hit it. click_link_with_name
    seems a bit too simple
    can you elaborate?

    had a play with it, but can’t seem to hit it. click_link_with_name
    seems a bit too simple
    can you elaborate?

    newyorkdolluk wrote:

    hi,

    i am trying to click a tab on a web page and the source reveals this as
    the entry (within a table):

  • Planning
  • can anyone tell me the ruby/watir code to click this?

    thanks

    Assuming the variable referencing the IE controller is $ie…

    $ie.link(:text, /planning/i).click()

    This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

    | Privacy Policy | Terms of Service | Remote Ruby Jobs