Class WindowFocuser

java.lang.Object
com.atlassian.jira.pageobjects.util.WindowFocuser

public final class WindowFocuser extends Object
Provides utility methods for giving the focus to a window.
Since:
7.5
  • Method Details

    • clickLinkAndFocus

      public static void clickLinkAndFocus(org.openqa.selenium.WebDriver webDriver, com.atlassian.pageobjects.elements.PageElement elementToClick)
      Clicks the given element, then switches the browser to the window/tab opened by that element.
      Parameters:
      webDriver - the web driver
      elementToClick - the element to click (usually a link or button)