That code is pretty much location-agnostic; to make it work in a POD project it could be incorporated in the page object and made to throw a custom exception if all location efforts fail.
My point is that using that pattern does the minimum effort necessary to locate a widget like the OP wanted and shouldn't leak exceptions in normal conditions. This makes test failures more salient and removes the temptation of using ugly "catch(Exception e)" statements.
--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/LgqQz4aTb00/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/211618c6-184f-487c-a4a3-0de9da371adb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.