hp uft - Take snapshot or screenshot while highligting the field in QTP during runtime -
i trying take screenshot of field while highlighting field during run time in qtp.
systemutil.run "c:\program files (x86)\google\chrome\application\chrome.exe", "--ignore-certificate-errors -incognito " & "www.google.com" browser("google").page("google").webedit("search").highlight while browser("google").page("google").webedit("search").highlight = true browser("google").page("google").webedit("search").capturebitmap("c:\google.bmp") wend
thanks, lead helpful me.
both highlight
, capturebitmap
methods synchronous, means time function returns highlight operation/bitmap capturing have finished. in order capture flashing of highlight need create own function captures screen length of time after has finished running, require multi-threading , isn't fit vbscript.
another thing can tell uft capture movie of test run, include highlighted object (you'll have manually find spot in clip , capture it).
see tools -> options -> gui testing -> screen capture -> save movie results.
Comments
Post a Comment