Skip to content

Commit

Permalink
Merge pull request #328 from mvorisek/patch-1
Browse files Browse the repository at this point in the history
The "getText" replaced "\r\n" with 2 spaces instead of 1.
  • Loading branch information
aik099 authored Nov 1, 2024
2 parents 6a2142e + baa071d commit 28f43ec
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 @@ -638,8 +638,8 @@ public function getTagName(string $xpath)

public function getText(string $xpath)
{
return (string) str_replace(
array("\r", "\r\n", "\n"),
return str_replace(
array("\r\n", "\r", "\n"),
' ',
$this->executeJsOnXpath($xpath, 'return {{ELEMENT}}.innerText;')
);
Expand Down

0 comments on commit 28f43ec

Please sign in to comment.