Skip to content

Commit

Permalink
Revert resizeWindow jsonwire fallback code
Browse files Browse the repository at this point in the history
  • Loading branch information
justafish committed Oct 3, 2023
1 parent 580ff48 commit cb196ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Selenium2Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,9 @@ public function resizeWindow(int $width, int $height, ?string $name = null)
);

Check warning on line 979 in src/Selenium2Driver.php

View check run for this annotation

Codecov / codecov/patch

src/Selenium2Driver.php#L977-L979

Added lines #L977 - L979 were not covered by tests
}
else {
$this->wdSession->window($name ? $name : 'current')->postSize(
$window = $this->getWebDriverSession()->window($name ?: 'current');
\assert($window instanceof Window);
$window->postSize(
array('width' => $width, 'height' => $height)
);
}
Expand Down

0 comments on commit cb196ef

Please sign in to comment.