Skip to content

WinSpy Driver Selection

WinSpy assists with path-related operations on a Windows application. It enables users to obtain the location (XPath) information of fields to perform operations like writing text, getting data, clicking areas, or taking screenshots of the whole screen or a part of it.

  1. Double-click the winSpy.exe file to open WinSpy.
  2. Click Settings > Driver > Chrome.

Access to Web Browser

Search Operation

This scenario demonstrates performing a search operation on YouTube using WinSpy.

  1. In the WinSpy application, type or copy-paste the YouTube URL (https://youtube.com) into the Address textbox.
  2. Click the Run button next to the Address textbox.

  1. After clicking Run, WinSpy opens a new Chrome page and navigates to the YouTube page, establishing a connection.

  2. The page tags are listed as a tree view on the left. Clicking an element displays its information in the Information field. WinSpy automatically finds and displays the corresponding location information in the XPath Result fields. Both can be used in Robusta RPA; Relative Path information is recommended.

  1. To find the XPath information for a selected element, click the Inspect button. WinSpy will focus on the page.

  1. Hover your cursor over the desired element and wait for 2-3 seconds (it may take longer). WinSpy will detect the element, display it in yellow, and refocus itself once the XPath information is found.

  1. The information of the relevant element will automatically appear in the Relative Path field.

  1. If the element is a textbox, verify the location information by typing a word in the Try It field.
  2. Click the Set Text button. WinSpy writes the text to the relevant field on the browser.

  1. To search for "Robusta" on YouTube, click the Inspect button again.
  2. Hover over the Search button and wait for 2-3 seconds to obtain its XPath.

  1. If the relevant element is a button, verify the location information by clicking the Click button in the Try It field on WinSpy.

  1. This completes the search operation on YouTube via WinSpy.

  1. To check manually found XPath information, type or copy-paste the XPath into the XPath field and click the Test button.

Scrape data from a web page

If you want to scrape a table from a web page, table XPath information can be found via WinSpy.

  1. Click the Scrap button to scrape a table on WinSpy.

  1. The Scrap window will display First Header and Second Header fields. Click the ... button next to the First Header field.
  2. Hover over the first header element for 2-3 seconds. Repeat this process for the second header field.

  1. After finding XPath information for both headers, click the Next button.

  1. Click the ... button next to the First Column field.
  2. Hover over the first column area for 2-3 seconds. Repeat this process for the second column.

  1. After finding XPath information for the first and second columns, click the Next button.

  1. Select the XPath information for the first and second rows.
  2. Click the ... button next to the First Row field.
  3. Hover over the first row area for 2-3 seconds. Repeat this process for the second row.

  1. Click the Finish button.

  1. After completing all steps, the XPath information for the relevant table will be displayed in the Result Step window.