Skip to content

Commit 7b03d67

Browse files
committed
Remove firefox resize workaround
1 parent 9fc4223 commit 7b03d67

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

core/src/main/java/de/otto/jlineup/browser/Browser.java

+1-9
Original file line numberDiff line numberDiff line change
@@ -328,16 +328,8 @@ private void checkForErrors(WebDriver driver) throws Exception {
328328

329329
private Random random = new Random();
330330

331-
private void resizeBrowser(WebDriver driver, int width, int height) throws InterruptedException {
331+
private void resizeBrowser(WebDriver driver, int width, int height) {
332332
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-
}
341333
driver.manage().window().setSize(new Dimension(width, height));
342334
}
343335

0 commit comments

Comments
 (0)