diff --git a/src/Selenium2Driver.php b/src/Selenium2Driver.php index 3f2d1c39..1fce3fc2 100755 --- a/src/Selenium2Driver.php +++ b/src/Selenium2Driver.php @@ -435,7 +435,7 @@ public function switchToWindow(?string $name = null) $this->getWebDriverSession()->focusWindow($name ?: ''); } - public function switchToIFrame(?string $name = null) + public function switchToIFrame(string|int|null $name = null) { $this->getWebDriverSession()->frame(array('id' => $name)); }