Sha256: 8cf5300360499c93eebe5813cc303bdd82484c6f0ba14fe326b04970c77fad89

Contents?: true

Size: 512 Bytes

Versions: 12

Compression:

Stored size: 512 Bytes

Contents

module Appium
  module Ios
    # Accept the alert.
    # @return [void]
    def alert_accept
      # @driver.switch_to.alert.accept
      # ".switch_to.alert" calls getAlertText so use bridge directly
      driver.send(:bridge).acceptAlert
    end

    # Dismiss the alert.
    # @return [void]
    def alert_dismiss
      # @driver.switch_to.alert.dismiss
      # ".switch_to.alert" calls getAlertText so use bridge directly
      driver.send(:bridge).dismissAlert
    end
  end # module Ios
end # module Appium

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
appium_lib-6.0.0 lib/appium_lib/ios/element/alert.rb
appium_lib-5.0.1 lib/appium_lib/ios/element/alert.rb
appium_lib-5.0.0 lib/appium_lib/ios/element/alert.rb
appium_lib-4.1.0 lib/appium_lib/ios/element/alert.rb
appium_lib-4.0.0 lib/appium_lib/ios/element/alert.rb
appium_lib-3.0.3 lib/appium_lib/ios/element/alert.rb
appium_lib-3.0.2 lib/appium_lib/ios/element/alert.rb
appium_lib-3.0.1 lib/appium_lib/ios/element/alert.rb
appium_lib-3.0.0 lib/appium_lib/ios/element/alert.rb
appium_lib-2.1.0 lib/appium_lib/ios/element/alert.rb
appium_lib-2.0.0 lib/appium_lib/ios/element/alert.rb
appium_lib-1.0.0 lib/appium_lib/ios/element/alert.rb