Skip to content

Commit

Permalink
Fixed argument type in switchToIFrame() to be integer.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Dec 17, 2023
1 parent d8527fd commit a8301e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Driver/CoreDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,14 @@ public function switchToWindow(?string $name = null)
}

/**
* @param string|null $name
* @param int|null $name
*
* @return void
*
* @throws UnsupportedDriverActionException When operation not supported by the driver
* @throws DriverException When the operation cannot be done
*/
public function switchToIFrame(?string $name = null)
public function switchToIFrame(?int $name = null)
{
throw new UnsupportedDriverActionException('iFrames management is not supported by %s', $this);
}
Expand Down
4 changes: 2 additions & 2 deletions src/Driver/DriverInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,14 @@ public function switchToWindow(?string $name = null);
/**
* Switches to specific iFrame.
*
* @param string|null $name iframe name (null for switching back)
* @param int|null $name iframe name (null for switching back)
*
* @return void
*
* @throws UnsupportedDriverActionException When operation not supported by the driver
* @throws DriverException When the operation cannot be done
*/
public function switchToIFrame(?string $name = null);
public function switchToIFrame(?int $name = null);

/**
* Sets specific request header on client.
Expand Down

0 comments on commit a8301e8

Please sign in to comment.