Yes, the plan is to remove :link, :link_text and :partial_link_text. It is known that using :visible_text will not have the same performance. It has to iterate over elements, where as the Selenium ones would not. The benefit of :visible_text is that we can apply it across all element types, not just links.
I have a number of ideas for improving locator performance in general. However, for this specific case, you will see performance improvements by not using #element. Just switching to using #link will cut down the number of elements Watir has to iterate over. If there are other locators to reduce the links checked, that will also help performance. If that doesn't help, a specific example would help us identify other places for performance improvements. Justin On Sunday, December 10, 2017 at 2:24:19 AM UTC-5, rajagopal...@gmail.com wrote: > > When I use > > b.element(link: 'Book Now').click > > it says > > 2017-12-10 12:49:01 WARN Watir [DEPRECATION] :link locator is deprecated. > Use :visible_text instead. > > Does that mean it would be removed in future? > > because what I found is, visible_text locator is not working properly, it > clicks the link after 3 to 5 mins of time, How funny, Isn't it? > -- -- 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 --- 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 watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.