Yes, Watir is only going to iterate over the link elements instead of all of the elements to find the matching text. If there is a class or other attribute that would further filter out links, that would help as well. It will still be a little slower as there will be more wire calls, but I'm more concerned with having a consistent API than absolute performance.
For example: `browser.link(class: 'foo', data_bar: 'bar', text: "Foo Bar")` Additionally, you can also try watigiri which will iterate over a cached tree with a low level library, instead of making multiple wire calls. watigiri is limited by not being able to distinguish between "visible" and "non-visible" text. On Wednesday, August 29, 2018 at 4:19:47 PM UTC-7, rajagopalan madasami wrote: > > Ah, okay , that makes difference? Okay let me check it today how it works. > > On Thu 30 Aug, 2018, 4:12 AM Titus Fortner, <[email protected] > <javascript:>> wrote: > >> Are you using element or link method? >> >> -- >> -- >> Before posting, please read >> https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group. >> >> >> In short: search before you ask, be nice. >> >> [email protected] <javascript:> >> http://groups.google.com/group/watir-general >> [email protected] <javascript:> >> --- >> You received this message because you are subscribed to the Google Groups >> "Watir General" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > -- -- Before posting, please read https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
