Sha256: 348f4b0995e3cf71d468d38566f9d1ef358786760c016fa04d0e3905a7bbc90f

Contents?: true

Size: 482 Bytes

Versions: 26

Compression:

Stored size: 482 Bytes

Contents

module Selenium
  module WebDriver
    class Alert

      def initialize(bridge)
        @bridge = bridge

        # fail fast if the alert doesn't exist
        bridge.getAlertText
      end

      def accept
        @bridge.acceptAlert
      end

      def dismiss
        @bridge.dismissAlert
      end

      def send_keys(keys)
        @bridge.setAlertValue keys
      end

      def text
        @bridge.getAlertText
      end

    end # Alert
  end # WebDriver
end # Selenium

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
selenium-webdriver-2.45.0 lib/selenium/webdriver/common/alert.rb
selenium-webdriver-2.45.0.dev3 lib/selenium/webdriver/common/alert.rb
selenium-webdriver-2.45.0.dev2 lib/selenium/webdriver/common/alert.rb
selenium-webdriver-2.45.0.dev lib/selenium/webdriver/common/alert.rb
selenium-webdriver-2.44.0 lib/selenium/webdriver/common/alert.rb
selenium-webdriver-2.44.0.dev lib/selenium/webdriver/common/alert.rb
selenium-webdriver-2.43.0 lib/selenium/webdriver/common/alert.rb
selenium-webdriver-2.42.0 lib/selenium/webdriver/common/alert.rb
selenium-webdriver-2.41.0 lib/selenium/webdriver/common/alert.rb
browserstack-webdriver-2.40.1 lib/selenium/webdriver/common/alert.rb
selenium-webdriver-2.40.0 lib/selenium/webdriver/common/alert.rb
selenium-webdriver-2.40.0.rc2 lib/selenium/webdriver/common/alert.rb
selenium-webdriver-2.40.0.rc1 lib/selenium/webdriver/common/alert.rb
selenium-webdriver-2.39.0 lib/selenium/webdriver/common/alert.rb
selenium-webdriver-2.38.0 lib/selenium/webdriver/common/alert.rb
browserstack-webdriver-0.0.22 lib/selenium/webdriver/common/alert.rb
browserstack-webdriver-0.0.1 lib/selenium/webdriver/common/alert.rb
selenium-webdriver-2.37.0 lib/selenium/webdriver/common/alert.rb
selenium-webdriver-2.35.1 lib/selenium/webdriver/common/alert.rb
selenium-webdriver-2.35.0 lib/selenium/webdriver/common/alert.rb