How to find broken links

Hi,

I like to check automatically, if all used pictures in our help are uploaded in our versioning system. At the moment I do:

- File Iterator [C:\....]

-- Read TextFile [%Iterator%]

--- TextFind [img src="([^"])"] in [FileContent]

Now I like to collect all found files in a list/FileSet and compare it against the content of the folder "/images".

What the best way to to?

Thanks.

 

Best Regard,

Christian

Hi,

today I tried to use/automize SnapIt 8.0 for capturing pictures. I wanted to use the “Perform Mouse Click” (with automated get control) on the toolbar, but I got always the following error message: “Could not select control: An exception was thrown inside a Windows Hook event: Failed to get toolbar button bounds. The toolbar did not respond to a TB_GETRECT message.” After that I tried to reach the action via the main menu, but I also got an error message: “Could not select control: An exception was thrown inside a Windows Hook event: Could not get menu item count: Ungültiges Menühandle (Ausnahme von HRESULT: 0x80070579)”. [Translation: Invalid menu handle (Exception of HRESULT: 0x80070579)]

Regards,
Christian

Hi Christian

You will need to add some script. Add a project variable, call it ImagesList or something like that.

Select the Text Find/Replace action, and then switch to the Script editor tab below, and select the OnFindText tab.

Add the following script (vbscript) :

ImagesList = ImagesList & vbCRLF

Then you can use the List Iterator action with %ImagesList% as the list, and then check for each file in the images folder.

HTH