Overview¶
To automate Internet Explorer embedded in Java applications (for example the help viewer of Eclipse) the following things are required:
Squish for Java+Web package (please contact support to obtain such a package)
Squish for Java+Web license key (please contact sales to obtain such a license key)
Add to Trusted Sites¶
It is required to add http://127.0.0.1
and any other URL where the HTML Files are being loaded from to Internet Explorer's Trusted Sites
to allow the Squish component in the browser to communicate with the other Squish components.
To do this start Internet Explorer outside of Squish and then do the following:
Open menu item
Tools
|Internet options
.Activate tab
Security
.Click on zone
Trusted Sites
.Click on button
Sites
.Enter
http://127.0.0.1
into edit fieldAdd this website to the zone:
.Click button
Add
.Click button
Close
.Close Internet Explorer.
Optional, alternative recording approach¶
The following steps should generally not be required, but might be useful in cases where straight recording of a complete test case does not yield commands for the Internet Explorer automation.
The recording must take place in two steps:
Step #1: Record until the embedded Internet Explorer is visible, then end recording.
The resulting script should look similar to this:
Then the waitForApplicationLaunch() command should be replaced with these lines:
So the modified script should look like this:
Step #2: Use Squish
| Record Snippet
For this do the following:
Execute the test case until the breakpoint got reached.
Start snippet recording: Open menu
Squish
, chooseRecord Snippet
.Choose button
End recording
in Squish control bar when done.
The resulting script should look similar to this: