Method: Selenium::Client::GeneratedDriver#get_whether_this_window_match_window_expression

Defined in:
lib/selenium/client/legacy_driver.rb

#get_whether_this_window_match_window_expression(currentWindowString, target) ⇒ Object

Determine whether currentWindowString plus target identify the window containing this running code.

This is useful in proxy injection mode, where this code runs in every browser frame and window, and sometimes the selenium server needs to identify the “current” window. In this case, when the test calls selectWindow, this routine is called for each window to figure out which one has been selected. The selected window will return true, while all others will return false.

‘currentWindowString’ is starting window ‘target’ is new window (which might be relative to the current one, e.g., “_parent”)


714
715
716
# File 'lib/selenium/client/legacy_driver.rb', line 714

def get_whether_this_window_match_window_expression(currentWindowString,target)
    return boolean_command("getWhetherThisWindowMatchWindowExpression", [currentWindowString,target,])
end