Skip to content

Proposal: Return the OuterHtml of the page for getResponseContentLogMessage#38

Open
ronaldtebrake wants to merge 1 commit into
FriendsOfBehat:masterfrom
ronaldtebrake:patch-1
Open

Proposal: Return the OuterHtml of the page for getResponseContentLogMessage#38
ronaldtebrake wants to merge 1 commit into
FriendsOfBehat:masterfrom
ronaldtebrake:patch-1

Conversation

@ronaldtebrake

Copy link
Copy Markdown

First of all thanks for all the hard work going on to this!

I've got a proposal, I'm not sure if it's favorable or if there is anything missing.

When using $session->getPage()->getContent() we're basically omitting the <html> tag from the actual log message.

There are scenario's where there is useful information added to that tag. Using getOuterHtml will actually ensure it is rendered.

With getContent in place:
before

with getOuterHtml in place
after

When using getContent we're basically omitting the `<html>` tag from the actual page. There are scenario's where there is useful information added to that tag. Using getOuterHtml will actually ensure the entire content is rendered.
@Yozhef

Yozhef commented Sep 12, 2023

Copy link
Copy Markdown
Contributor

@ronaldtebrake I think additional information is good) Therefore, please fix the tests and we can make a release

@andrewnicols

andrewnicols commented Sep 12, 2023 via email

Copy link
Copy Markdown

@Yozhef

Yozhef commented Sep 12, 2023

Copy link
Copy Markdown
Contributor

@andrewnicols Thanks for noticing - third-party libraries can suffer if they are tied to a certain format

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants