lib/appium_lib/ios/xcuitest/element/generic.rb
# Find the first element containing value
# @param value [String] the value to search for
# @return [Element]
Find the first element containing value
Find the first element containing value
def raise_error_if_no_element(element)
          error_message = 'An element could not be located on the page using the given search parameters.'
          raise(::Selenium::WebDriver::Error::NoSuchElementError, error_message) if element.nil?
          element
        end
def raise_error_if_no_element ( element ) error_message = 'An element could not be located on the page using the given search parameters.' raise ( :: Selenium :: WebDriver :: Error :: NoSuchElementError , error_message ) if element . nil? element end
Find the first element containing value
Find the first element containing value
None
Element
element
<not_specific>
value
<not_specific>
the value to search for
the value to search for