Module Watir::Exception

  1. commonwatir/lib/watir/exceptions.rb
  2. firewatir/lib/firewatir/exceptions.rb
  3. show all

Methods

public class

  1. message_for_unable_to_locate

Public class methods

message_for_unable_to_locate (how, what)

Return an error message for when unable to locate the element

[show source]
# File commonwatir/lib/watir/exceptions.rb, line 42
    def self.message_for_unable_to_locate(how, what)
      result = "using #{how.inspect}"
      result << ", #{what.inspect}" if what
      "Unable to locate element, #{result}"
    end