Ask Your Question
1

If I add the cy.writefile statement within the cy.on('fail',...) block, why is it not functioning properly?

asked 2023-06-30 05:12:37 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-06-30 05:18:02 +0000

devzero gravatar image

Without seeing the specific code, it is difficult to say for sure. However, one possibility is that the cy.writefile statement is not being executed because the fail event is not being triggered. Another possibility is that the fail event is being triggered, but there is an error within the cy.writefile statement itself that is causing it to fail. It would be helpful to review any error messages or debugging information to troubleshoot the issue further.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-30 05:12:37 +0000

Seen: 11 times

Last updated: Jun 30 '23