Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML Report converts the backslashes to Forward Slashes #172

Open
prasanmgc opened this issue Oct 17, 2024 · 2 comments
Open

HTML Report converts the backslashes to Forward Slashes #172

prasanmgc opened this issue Oct 17, 2024 · 2 comments
Labels
good first issue Good for newcomers

Comments

@prasanmgc
Copy link

Describe the bug
When generating the HTML report, if the logs contains \a\b\c then in the report it is getting converted to //a/b/c.

To Reproduce
Steps to reproduce the behavior:

  1. Console.log('\a\b\c")
  2. run the test
  3. Report is generated
  4. check the report for the link. It is shown as //a/b/c. But somehow the logs attached isn't disturbed. it is having the expected Backslashes

Expected behavior
Backslashes should remain the same in the report. This is especially useful, if we are printing the directory path, so that user can copy & navigate to that using File Explorer.

Desktop (please complete the following information):

  • OS: Windows 7
  • Browser chrome
  • Version 109.0.5414.120

Could you please look into this?

@hrcorval
Copy link
Owner

Hi @prasanmgc, thanks for posting your issue. When trying to reproduce it, we cannot map this action:
Console.log('\a\b\c")

Where and how you run this command? As it seems this is not a python command, and when using logging.info or print commands, we were not able to reproduce it.

Thanks!

@hrcorval hrcorval added the good first issue Good for newcomers label Oct 17, 2024
@prasanmgc
Copy link
Author

@hrcorval First of all Apologies. It was my Bad. It should be logger.info.

Example Code:
network_drive = '\a\b\c'
logger.info(network_drive)

I could see the logs in the report with proper value as \a\b\c, Whereas in the report scenario steps, it is displayed as //a/b/c.

Hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants