Module: Watir::Exception
- Defined in:
- lib/watir/exceptions.rb
Defined Under Namespace
Classes: FrameAccessDeniedException, MissingWayOfFindingObjectException, NavigationException, NoMatchingWindowFoundException, NoStatusBarException, NoValueFoundException, ObjectDisabledException, ObjectReadOnlyException, TimeOutException, UnhandledEventException, UnknownCellException, UnknownFormException, UnknownFrameException, UnknownObjectException, WatirException
Class Method Summary collapse
-
.message_for_unable_to_locate(how, what) ⇒ Object
Return an error message for when unable to locate the element.
Class Method Details
.message_for_unable_to_locate(how, what) ⇒ Object
Return an error message for when unable to locate the element
46 47 48 49 50 |
# File 'lib/watir/exceptions.rb', line 46 def self.(how, what) result = "using #{how.inspect}" result << ", #{what.inspect}" if what "Unable to locate element, #{result}" end |