Class: Rufus::Drivers::IOS_Simulator

Inherits:
DriverBase show all
Defined in:
lib/rufus/drivers/iOS_simulator.rb

Direct Known Subclasses

IOS_FasterSimulator

Instance Attribute Summary

Attributes inherited from DriverBase

#config

Instance Method Summary collapse

Methods inherited from DriverBase

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

Constructor Details

#initialize(config) ⇒ IOS_Simulator

Returns a new instance of IOS_Simulator.



8
9
10
# File 'lib/rufus/drivers/iOS_simulator.rb', line 8

def initialize(config)
  @config = config
end

Instance Method Details

#capabilitiesObject



12
13
14
15
16
17
18
19
20
# File 'lib/rufus/drivers/iOS_simulator.rb', line 12

def capabilities
  {
      'browserName' => @config["browser"],
      'platform' => @config["platform"],
      'version' => @config["version"].to_s,
      'app' => @config["sim_app_path"],
      'device' => "iPhoneSimulator"
  }
end