Hi i am currently trying to save a picture to a file however it is currently saving as C:/screenshots/ 1.png with a space between the / and the 1 i want to get rid of that
The 'SaveToFile' function is a test complete specific but im guessing my problem is my python syntax
The line that saves it does this
pic.SaveToFile("C:\screenshots\ "+ str(counter) + ".png")
So i thought the obvious solution was to do this
pic.SaveToFile("C:\screenshots\"+ str(counter) + ".png")
But that produces an error
I then thought i could double quote it
pic.SaveToFile("C:\screenshots\""+ str(counter) + ".png")
But the picture doesnt save
How do i get it to save the picture as
C:/screenshots/1.png
Any help would be appreciated thanks