Package com.shaft.cucumber
Class BrowserSteps
java.lang.Object
com.shaft.cucumber.BrowserSteps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Closes the current browser windowvoid
void
Read the target browser value from the execution.properties filevoid
void
Navigates one step back from the browsers historyvoid
Navigates one step forward from the browsers historyvoid
navigateToURL
(String targetUrl) Navigates to targetUrl in case the current URL is different, else refreshes the current pagevoid
navigateToURL
(String targetUrl, String targetUrlAfterRedirection) Navigates to targetUrl in case the current URL is different, else refreshes the current page.void
void
setWindowSize
(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
-