TagUI icon indicating copy to clipboard operation
TagUI copied to clipboard

snap opens a folder instead of file if a comment is there on the same line - pl help

Open venky652003 opened this issue 1 year ago • 1 comments

Hi, I am facing a problem in saving a webpage screen through snap - code snippet is below:

File_name_old_commodity = "post_page" http://www.rediff.com snap page to File_name_old_commodity.png //save an image of the webpage img_file = File_name_old_commodity

the comment " //save an image of the webpage" on the same line as the snap command results in a folder named "post_page.png" and file is not created. If a remove the comment , I get the desired result of saving the webpage screen to a file named "post_page.png". I am not able to understand how a comment can disturb the code. Pl help.

venky652003 avatar Mar 11 '23 18:03 venky652003

Hi @venky652003 the comments are identified only when the line starts with //. If you place them in the middle of the line they do not get identified as comments and hence disrupt the step. Hope this help!

ruthtxh avatar Mar 20 '23 02:03 ruthtxh

Closing but please ping back if this is still relevant of an issue.

kensoh avatar Aug 19 '24 12:08 kensoh