class Appium::Capybara::Appium::Capybara::Node

Public Instance Methods

find_custom(finder, locator) click to toggle source
# File lib/appium_capybara/driver/appium/node.rb, line 23
def find_custom(finder, locator)
  native.find_elements(finder, locator).map { |n| self.class.new(driver, n) }
end
inspect() click to toggle source
# File lib/appium_capybara/driver/appium/node.rb, line 27
def inspect
  %(#<#{self.class} name="#{name}">)
end
label() click to toggle source
# File lib/appium_capybara/driver/appium/node.rb, line 3
def label
  native.label
end
long_press() click to toggle source
# File lib/appium_capybara/driver/appium/node.rb, line 17
def long_press
  action = Appium::TouchAction.new
  action.long_press(element: native, duration: 2000)
  action.perform
end
name() click to toggle source
# File lib/appium_capybara/driver/appium/node.rb, line 7
def name
  native.name
end
set(value, _options = {}) click to toggle source

Override

# File lib/appium_capybara/driver/appium/node.rb, line 12
def set(value, _options = {})
  native.clear
  send_keys(value)
end