File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
examples/java/src/test/java/dev/selenium/browsers Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -219,6 +219,7 @@ public void setNetworkConditions() {
219219 () -> Assertions .assertEquals (networkConditions .getDownloadThroughput (), actualConditions .getDownloadThroughput ()),
220220 () -> Assertions .assertEquals (networkConditions .getUploadThroughput (), actualConditions .getUploadThroughput ())
221221 );
222+ ((ChromeDriver ) driver ).deleteNetworkConditions ();
222223 driver .quit ();
223224 }
224225}
Original file line number Diff line number Diff line change 1515import org .junit .jupiter .api .Test ;
1616import org .openqa .selenium .By ;
1717import org .openqa .selenium .WebElement ;
18+ import org .openqa .selenium .chrome .ChromeDriver ;
1819import org .openqa .selenium .chromium .ChromiumDriverLogLevel ;
1920import org .openqa .selenium .chromium .ChromiumNetworkConditions ;
2021import org .openqa .selenium .edge .EdgeDriver ;
@@ -213,6 +214,7 @@ public void setNetworkConditions() {
213214 () -> Assertions .assertEquals (networkConditions .getDownloadThroughput (), actualConditions .getDownloadThroughput ()),
214215 () -> Assertions .assertEquals (networkConditions .getUploadThroughput (), actualConditions .getUploadThroughput ())
215216 );
217+ ((EdgeDriver ) driver ).deleteNetworkConditions ();
216218 driver .quit ();
217219 }
218220}
You can’t perform that action at this time.
0 commit comments