Search code examples
watirfirewatir

If there are two links with the same element name but are on different forms of a page how to specify one over the other?


alt textWhat I mean that in the inspection of my element I found that the two links have the same name but are on different forms. I want to click the second link. How could I specify that in water?

Thanks in advance.


Solution

  • browser.form(how, what).link(how, what)
    

    If you provide relevant HTML I can be more specific.