Package com.shaft.cucumber
Class BrowserSteps
java.lang.Object
com.shaft.cucumber.BrowserSteps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCloses the current browser windowvoidvoidRead the target browser value from the execution.properties filevoidvoidNavigates one step back from the browsers historyvoidNavigates one step forward from the browsers historyvoidnavigateToURL(String targetUrl) Navigates to targetUrl in case the current URL is different, else refreshes the current pagevoidnavigateToURL(String targetUrl, String targetUrlAfterRedirection) Navigates to targetUrl in case the current URL is different, else refreshes the current page.voidvoidsetWindowSize(int width, int height)
-
Constructor Details
-
BrowserSteps
-
-
Method Details
-
getBrowser
@Given("I Open the target browser") public void getBrowser()Read the target browser value from the execution.properties file -
maximizeWindow
@When("I Maximize the current window") public void maximizeWindow() -
setWindowSize
@When("I Resize the current window size to {int} width * {int} height") public void setWindowSize(int width, int height) -
fullScreenWindow
@When("I Full Screen the current window") public void fullScreenWindow() -
refreshCurrentPage
@When("I Refresh the current window") public void refreshCurrentPage() -
closeCurrentWindow
@When("I Close the current window") public void closeCurrentWindow()Closes the current browser window
-