Codeception / Codeception/module-webdriver

Inconsistent newline characters for Windows

Offen
#63 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
PHP
Sterne
39
Forks
25
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

1. Methods `seeInSource` and `seeInPageSource` have different descriptions and run different code paths, but ultimately do the very save comparison. Meaning there should be no `seeInPageSource` method. Please remove.
2. I am trying to use either of them, let's say `seeInSource`. It works fine in PhpBrowser. But it fails for WebDriver. I have found the solution: I could do `str_replace(chr(13), '', $whatIWantToSeeMultiline)` and it will work for WebDriver. **This is the old good \n vs \r\n.** Could you please compare more intelligently, keeping in mind newline may differ?

Webserver is Apache and it's run on same Windows machine, by the way.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.