Commit 7b03d67 1 parent 9fc4223 commit 7b03d67 Copy full SHA for 7b03d67
File tree 1 file changed +1
-9
lines changed
core/src/main/java/de/otto/jlineup/browser
1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -328,16 +328,8 @@ private void checkForErrors(WebDriver driver) throws Exception {
328
328
329
329
private Random random = new Random ();
330
330
331
- private void resizeBrowser (WebDriver driver , int width , int height ) throws InterruptedException {
331
+ private void resizeBrowser (WebDriver driver , int width , int height ) {
332
332
LOG .debug ("Resize browser window to {}x{}" , width , height );
333
-
334
- if (config .browser == Type .FIREFOX ) {
335
- // Firefox 53.0 hangs if you resize a window to a size it already has,
336
- // so make sure another size is used before setting the desired one
337
- // TODO: Remove the following line when fixed in Firefox!
338
- driver .manage ().window ().setSize (new Dimension (width + (random .nextInt (20 ) - 10 ), height + (random .nextInt (20 ) - 10 )));
339
- TimeUnit .MILLISECONDS .sleep (25 );
340
- }
341
333
driver .manage ().window ().setSize (new Dimension (width , height ));
342
334
}
343
335
You can’t perform that action at this time.
0 commit comments