Skip to content

Commit

Permalink
Renamed variables in the "switchToWindow" method to better explain co…
Browse files Browse the repository at this point in the history
…de logic
  • Loading branch information
aik099 committed Jun 28, 2024
1 parent 2a85993 commit 3749e26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Selenium2Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,11 +446,11 @@ public function back()

public function switchToWindow(?string $name = null)
{
$name = $name === null
$handle = $name === null
? $this->initialWindowHandle
: $this->getWindowHandleFromName($name);

$this->getWebDriverSession()->focusWindow($name);
$this->getWebDriverSession()->focusWindow($handle);
}

/**
Expand Down

0 comments on commit 3749e26

Please sign in to comment.