Skip to content

Commit eac6915

Browse files
committed
Code cleanup.
1 parent 77c5e39 commit eac6915

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/main/java/com/frameworkium/tests/internal/BaseTest.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,15 @@ protected ScreenshotCapture initialValue() {
7474
};
7575
}
7676

77+
/**
78+
* The methods which configure the browser once a test runs
79+
* - Maximises browser based on the driver type
80+
* - Initialises screenshot capture if needed
81+
* - Clears the session if another test ran prior
82+
* - Sets the user agent of the browser
83+
*
84+
* @param testMethod - The test method name of the test
85+
*/
7786
@BeforeMethod
7887
public static void configureBrowserBeforeTest(Method testMethod) {
7988
configureDriverBasedOnParams();
@@ -86,7 +95,6 @@ public static void configureBrowserBeforeTest(Method testMethod) {
8695
* @param testMethod - Test method passed from the test script
8796
*/
8897
private static void initialiseNewScreenshotCapture(Method testMethod) {
89-
configureDriverBasedOnParams();
9098
if (ScreenshotCapture.isRequired()) {
9199
String testID = "n/a";
92100
try {

0 commit comments

Comments
 (0)