Codeception / Codeception/module-webdriver

Inconsistent newline characters for Windows

Đang mở
#63 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
PHP
Star
39
Fork
25
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.