File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/main/java/com/frameworkium/tests/internal Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments