The renewal maintenance has officially ended for Progress iMacros effective November 30, 2023.
This Wiki site will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely, The Progress Team
iimTakeBrowserScreenshot()
Takes a screenshot of the current browser content or the current website.
Syntax
int ret_code = iimTakeBrowserScreenshot ( String FILEPATH, int 0/1 )
Note V6.8: Currently iimTakeBrowserScreenshot supports the iMacros Browser. Support for IE and Firefox will be available soon.
Parameters
- String FILEPATH
- Defines where to save the screenshot. e.g. "c:\myscreenshots\testpage.png"
- Output always is in PNG format
- Int 0 or 1
- "0": take screenshot of browser
- "1": take screenshot of complete webpage
Examples
i = iim1.iimPlay("salesforce test1") 'Take screenshot of error If i < 0 then iscr = iim1.iimTakeBrowserScreenshot ("./screenshot wsh-start-error " & Hour(Now)&Minute(Now)&Second(Now) & ".png") if iiscr < 0 then MsgBox "Could not take browser screenshot" end if