Forum Discussion

googleid_111025's avatar
googleid_111025
New Contributor
12 years ago

Taking screenshot and save image into a given folder

Hi ,



I just writing VB scripts which wil take an screen of the web page and save image in give folder.

Currenlty I am using following script which save image in log floder.



Function Take_Screenshot(myurl002,comment)

Call Log.Picture(Sys.Browser("iexplore").Page(myurl002).Picture, comment, "")

End Function

  • Hi,



    Found the solution.



    Following VB funtion will do the work.



    Dim FilePath



    FilePath = "C:\Foldername\test.jpg"



    Function Take_Screenshot(FilePath)

    Sys.Desktop.Picture.SaveToFile FilePath

    End Function