Whenever I am taking screenshot, my existing file is getting replaced with the newly taken screenshot.
What can I do to avoid the over riding of my previous image?
Any inputs from anyone will be appreciated. I want to regularly track whether my required phone is in stock.
You can define a variable and assign value to variable by generating a random number and concatenating it with file name. You can use that variable as screenshot name
This will generate a unique file each time. Hope this resolves your issue
Simple resolution as shared by @ayaz_ahmad. Just append the datetime stamp.
Better than generating a random number. File sorting will be more easier.