Class: Rufus::Drivers::IOS_FasterDevice

Inherits:
IOS_Device show all
Defined in:
lib/rufus/drivers/iOS_faster_device.rb

Instance Attribute Summary

Attributes inherited from DriverBase

#config

Instance Method Summary collapse

Methods inherited from IOS_Device

#capabilities, #initialize

Methods inherited from DriverBase

#alert_shown?, #all_elements, #buttons, #capabilities, #cells, #class_for, #click, #click_alert, #contains_name_key?, #elements_by_tag, #find, #find_alert, #labels, #match?, #orientation, #page_source, #press_button, #quit, #reset_page_source, #rotate, #screenshot, #scroll_to, #sequence, #server_url, #start, #tap, #text_fields, #timed_sequence, #touch_and_hold, #type

Constructor Details

This class inherits a constructor from Rufus::Drivers::IOS_Device

Instance Method Details

#class(locator) ⇒ Object



32
33
34
# File 'lib/rufus/drivers/iOS_faster_device.rb', line 32

def class(locator)
  Rufus::Parser.new(page_source).class_for(locator[:name])
end

#displayed?(locator) ⇒ Boolean

Returns:

  • (Boolean)


22
23
24
25
26
27
28
# File 'lib/rufus/drivers/iOS_faster_device.rb', line 22

def displayed?(locator)
  if contains_name_key? locator
    Rufus::Parser.new(page_source).displayed?(locator[:name])
  else
    super locator
  end
end

#enabled?(locator) ⇒ Boolean

Returns:

  • (Boolean)


15
16
17
18
19
20
21
# File 'lib/rufus/drivers/iOS_faster_device.rb', line 15

def enabled?(locator)
  if contains_name_key? locator
    Rufus::Parser.new(page_source).enabled?(locator[:name])
  else
    super locator
  end
end

#exists?(locator) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
11
12
13
14
# File 'lib/rufus/drivers/iOS_faster_device.rb', line 8

def exists?(locator)
  if contains_name_key? locator
    Rufus::Parser.new(page_source).exists?(locator[:name])
  else
    super locator
  end
end

#text(locator) ⇒ Object



29
30
31
# File 'lib/rufus/drivers/iOS_faster_device.rb', line 29

def text(locator)
  Rufus::Parser.new(page_source).value(locator[:name])
end