Class Selenium::WebDriver::TargetLocator
In: lib/selenium/webdriver/common/target_locator.rb
Parent: Object

Methods

Public Class methods

@api private

Public Instance methods

get the active element

@return [WebDriver::Element]

switches to the currently active modal dialog for this particular driver instance

selects either the first frame on the page, or the main document when a page contains iframes.

switch to the frame with the given id

switch to the given window handle

If given a block, this method will switch back to the original window after block execution.

@param id

  A window handle, obtained through Driver#window_handles

[Validate]