Sha256: 933eb037e7318d1401a937b10ab719f0e08a01be347fe34d5cfbeb2932f6ada9

Contents?: true

Size: 651 Bytes

Versions: 4

Compression:

Stored size: 651 Bytes

Contents

module Selenium
  module WebDriver
    class TargetLocator

      #
      # @api private
      #

      def initialize(driver)
        @bridge = driver.bridge
      end

      #
      # switch to the frame with the given id
      #

      def frame(id)
        @bridge.switchToFrame id
      end

      #
      # switch to the frame with the given id
      #

      def window(id)
        @bridge.switchToWindow id
      end

      #
      # get the active element
      #
      # @return [WebDriver::Element]
      #

      def active_element
        @bridge.switchToActiveElement
      end

    end # TargetLocator
  end # WebDriver
end  # Selenium

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
selenium-webdriver-0.0.13 common/src/rb/lib/selenium/webdriver/target_locator.rb
selenium-webdriver-0.0.12 common/src/rb/lib/selenium/webdriver/target_locator.rb
selenium-webdriver-0.0.11 common/src/rb/lib/selenium/webdriver/target_locator.rb
selenium-webdriver-0.0.10 common/src/rb/lib/selenium/webdriver/target_locator.rb