Web Spy
OS based Web-GUI [Classic] automation behavior
| Operating System (OS) | Automate mode | Behavior |
|---|---|---|
| Windows / Linux | Web | Detects all web elements. Notes: - If Web Spy [Classic] opens multiple browser windows, it is advisable to switch windows from the Web Spy [Classic] toolbar list as it will automatically display dialogue for confirmation to add a Web Switch Window step. - On the other hand, if you switch to another window manually, it does not show any Switch step creation dialogue, and you will have to add the step manually in the workflow. - Linux supports only Web mode. |
Web Spy [Classic] Toolbar
Web Spy [Classic] toolbar is compact and occupies a minimum screen area to spy on a web page with ease. Upon Spying, it opens the Generate Step dialog with two sections- Attributes and Step Generation for the web; make configuration changes if required and generates steps. Web Spy [Classic] operates in Web mode. The spy toolbar is as follows:
![]()
Shortcut/Hot Keys/Tool icons
All web elements can be detected using Web Spy [Classic]. Following are the available shortcut keys:
| Shortcut Keys/Tools | Description |
|---|---|
| Ctrl + Alt + X | Use to open Windows Spy. Notice the background of the lens, which is orange and signifies that the Web Spy [Classic] is not in active mode. Click on the lens icon ( On the keyboard, press right shift or back tick (`) to open the Generate Step dialog with element information; change configurations, if required. To close active Web Spy [Classic] tool, click clicking ( |
Click the Start Recording button to start recording. Click the Stop Recording button to stop recording Once you start the recording, it understands the mouse and the key actions. It considers every element as windows by default until there is a preference for detecting web application while recording. The Recorder captures the following actions. i .Click: The recorder automatically detects click type on an actionable element. ii. Set/Write a value: Recorder generates the set value step if a user, - Types in a text field or - Performs keyboard action ctrl +v on the text field iii. Read/Get value: To read the value of a particular element, hover the mouse on that element and press Ctrl + C. Like GUI spy, the recorder handles complex window/frame tree switching activities internally and generates appropriate steps during workflow creation. Note: In some cases, if GUI Recorder fails to highlight/record a few elements, use GUI Spy to generate steps for such element actions. Once you click on stop recording, the recorder prompts the create workflow dialog. Confirm by clicking Yes to create a workflow with recorded steps; else, click No. | |
| To reload the web page. | |
| Click to highlight the selection and resume spying. On a browser, specifically IE, if the page is changed by some actions the highlighting stops. Therefore, to resume spying, click the highlight icon on toolbar to start highlighting the elements again and continue spying. | |
| Important: Frame switching is automatic. Frame tree button should only be used in case of spy is not able to extract/highlight elements from a particular frame.In case you need to use Frames follow the steps: 1. If you want to spy on element which is contained in a frame, then you need to switch to that frame. To do that you need to click on the frame icon on Web Spy [Classic] toolbar. It opens a dialog with frame tree where you can select any frame to which you want to switch. 2. The Frame icon is highlighted in the screen below. Click the Frame icon. 3. The Frame Tree for the current window appears. 4. Let us now GUI Spy the following URL - https://automationedge.com 5. When the page is initialized the first time and all components are loaded. 6. Click on the Frames icon ( 7. GUI Spy can detect any number of frames. If the page contains frames a Frame Tree window appears. 8. Select any frame to which you want to switch. 9. Click on “Main Page” to expand the tree. Click on the nodes to expand the hierarchy. 10.Select a parent frame and a child frame underneath, and then hover over any frame element. In case web elements are not highlighted on hover click Spy (Spy button turns from orange to white) and then hover the mouse pointer to highlight elements. 11. The following snapshot displays the expanded frame hierarchy. In the example below we are on Frame#0 under Main Page. The frame is highlighted in a green box as seen in the snapshot below. Note: If you switch to frame, spying on that will start automatically. To be able to spy on rest of the document select Main page from tree; you additionally need to manually add the Web Switch Frame step with the Locate By Default option. As soon as you select another frame spying from first frame stops. | |
| (Get Source) | Download the source code of the current page using the Source icon on the Web Spy [Classic] toolbar. Click the Get Source icon on Web Spy [Classic]. |
| (Locate Element) | Locate Element locates an element on the web page based on an element attribute value. |
| (Navigate to URL) | While spying element on a web page, if there is a need to navigate to another URL, use the Navigate to URL icon. |
| (Close Web Spy [Classic]) or Ctrl +Q | Close the Web Spy [Classic]. |
Web Spy [Classic]: Limitations and Known Issues Limitations:
- Web Spy [Classic] does not yet support alerts.
- On Linux you need to manually add switch window step as there’s no desktop support.
- If a Link Text element locator contains the “&” sign, it shows it as &, so correct it before locating elements. Known Issues:
- Microsoft Edge browser cannot automate/spy select dropdown elements.
- Inside a frame, on a page, if we click a link that takes us to another page; on the second page, if Web Spy [Classic] does not highlight elements, toggle Web Spy [Classic] and highlight them.
Click the Stop Recording button to stop recording
Once you start the recording, it understands the mouse and the key actions.