Open topic with navigation

# Find Selectors using the CSS Selector Builder Tool

The HPE CSS Selector Builder Tool is an example tool, provided with HPE Web Connector, that can help you find CSS selectors for parts of a web page. The tool is a plug-in for the Chrome web browser.

Note: HPE does not support the CSS Selector Builder Tool, it is provided only as an example of a tool that you could build.

To install the HPE CSS Selector Builder Tool

1. Open the Chrome web browser.

2. In the address bar, type `chrome://extensions` and press ENTER.

   The Extensions page opens.

3. Open a file manager (such as Windows Explorer on Windows).

4. Drag the file `HPE CSS Selector Builder Tool.crx` from the HPE Web Connector installation onto the Extensions page in the browser.

   A box opens, asking for your permission to install the tool.

5. Click Add Extension.

   The tool is installed.

To find CSS Selectors

1. In Chrome, navigate to the web site that you want to index.

2. On the toolbar, click the HPE CSS Selector Builder Tool button.

   The tool opens at the bottom of the browser window (but you can move it to the top of the window if you prefer, by clicking Move to top).

3. Move the mouse pointer over the page. Elements on the page are highlighted in blue as you hover over them, and the selector for the current element is displayed in the Current field.

4. Choose the page elements to keep and discard:

   - Right-click on each element that you want to keep when the page is clipped. The page elements to keep are highlighted in green and selectors are added to the Select box.
   - Right-click twice on each element that you want to discard when the page is clipped. The page elements to discard are highlighted in red and selectors are added to the Unselect box.
   - You can type one or more selectors in the Select and Unselect boxes and press Refresh. The tool will then show which parts of the page are clipped based on the selectors you have entered.
   - To clear all selectors, click Clear Selectors.
5. (Optional) Click on any hyperlink to navigate around the site. The tool highlights the selected and unselected elements on the current page, so that you can see whether the selectors you have chosen clip multiple pages as desired.
6. When you have optimized your selections, use the value in the Select box to set the parameter `ClipPageUsingCssSelect` in the connector's configuration file, and the value in the Unselect box to set the parameter `ClipPageUsingCssUnselect`.
7. Click Close.

© 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close Send Documentation Feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm