File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ public void setUp() {
23
23
options .addArguments ("--disable-extensions" ); // Disable extensions for stability
24
24
25
25
driver = new ChromeDriver (options );
26
- driver .manage ().timeouts ().implicitlyWait (Duration .ofSeconds (5 ));
27
- driver .manage ().timeouts ().pageLoadTimeout (Duration .ofSeconds (5 ));
26
+ driver .manage ().timeouts ().pageLoadTimeout (Duration .ofSeconds (60 ));
27
+ driver .manage ().timeouts ().implicitlyWait (Duration .ofSeconds (10 ));
28
28
driver .manage ().window ().maximize ();
29
29
}
30
30
@@ -39,9 +39,15 @@ public void attachScreenShot(final ITestResult result) {
39
39
}
40
40
}
41
41
42
- @ AfterMethod ( dependsOnMethods = "attachScreenShot" )
42
+ @ AfterMethod
43
43
public void tearDown () {
44
- driver .quit ();
44
+ if (driver != null ) {
45
+ try {
46
+ driver .quit ();
47
+ } catch (Exception e ) {
48
+ e .printStackTrace ();
49
+ }
50
+ }
45
51
}
46
52
47
53
}
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<!DOCTYPE suite SYSTEM "https://testng.org/testng-1.0.dtd">
3
3
4
- <suite name =" Suite Name" parallel =" methods " thread-count =" 3" >
4
+ <suite name =" Suite Name" parallel =" false " thread-count =" 3" >
5
5
<test name =" Test 1" >
6
6
<classes >
7
7
<class name =" reporting.TestUtils" />
You can’t perform that action at this time.
0 commit comments