How to capture the screenshot?

To capture the screenshot use the following code,

E.g.,

1) Browser("name:=Google Maps").Page("title:=Google Maps").CaptureBitmap "c:\Googlemaps.bmp"

2) Browser("micclass:=Browser").Page("micclass:=Page").CaptureScreenshot micPass, "Page ScreenShot."

3) Reporter.Reportevent micPass,"Screenshot Capture","Screenhot Captured."&strFileName&" Is the file name"      ‘To report with a screenshot

Comments

Popular posts from this blog

Is QA a easy job?

Latest Version of TestComplete

Successful tester