Class WindowFocuser
java.lang.Object
com.atlassian.jira.pageobjects.util.WindowFocuser
Provides utility methods for giving the focus to a window.
- Since:
- 7.5
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidclickLinkAndFocus(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.
-
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 driverelementToClick- the element to click (usually a link or button)
-