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