Method: Selenium::WebDriver::Firefox::Options#enable_android

Defined in:
lib/selenium/webdriver/firefox/options.rb

#enable_android(package: 'org.mozilla.firefox', serial_number: nil, activity: nil, intent_arguments: nil) ⇒ Object

Enables mobile browser use on Android.

Parameters:

  • package (String) (defaults to: 'org.mozilla.firefox')

    The package name of the Chrome or WebView app.

  • serial_number (String) (defaults to: nil)

    The serial number of the device on which to launch the application. If not specified and multiple devices are attached, an error will be returned.

  • activity (String) (defaults to: nil)

    The fully qualified class name of the activity to be launched.

  • intent_arguments (Array) (defaults to: nil)

    Arguments to launch the intent with.

See Also:



144
145
146
147
148
149
# File 'lib/selenium/webdriver/firefox/options.rb', line 144

def enable_android(package: 'org.mozilla.firefox', serial_number: nil, activity: nil, intent_arguments: nil)
  @options[:android_package] = package
  @options[:android_activity] = activity unless activity.nil?
  @options[:android_device_serial] = serial_number unless serial_number.nil?
  @options[:android_intent_arguments] = intent_arguments unless intent_arguments.nil?
end