選取您的 Cookie 偏好設定

我們使用提供自身網站和服務所需的基本 Cookie 和類似工具。我們使用效能 Cookie 收集匿名統計資料,以便了解客戶如何使用我們的網站並進行改進。基本 Cookie 無法停用,但可以按一下「自訂」或「拒絕」以拒絕效能 Cookie。

如果您同意,AWS 與經核准的第三方也會使用 Cookie 提供實用的網站功能、記住您的偏好設定,並顯示相關內容,包括相關廣告。若要接受或拒絕所有非必要 Cookie,請按一下「接受」或「拒絕」。若要進行更詳細的選擇,請按一下「自訂」。

Retrieving XPaths (XML Path Language) for Web Crawler

焦點模式
Retrieving XPaths (XML Path Language) for Web Crawler - Amazon Q Business
此頁面尚未翻譯為您的語言。 請求翻譯

If the website you are crawling with Amazon Q Business Web Crawler uses Form or SAML authentication, you need to provide Amazon Q with the absolute XPaths for the username and password fields on your web page. Optionally, you may also need to provide the absolute XPaths to the username and password buttons.

XPaths are expressions used to uniquely identify and locate the content of any XML like language document (including HTML). Amazon Q uses the XPaths you provide to confirm access to the website you want to crawl. XPaths usually follow the following format: //tagname[@Attribute='Value'].

The following tabs provide a procedure for retrieving XPaths required for your Amazon Q Web Crawler connector using different web browsers.

Chrome

To retrieve XPaths for an Amazon Q Web Crawler

  1. Make sure you're on the web page you want to crawl. Then, either select or click on the web page element you want to retrieve the XPath for. This could be the username or password fields, or the username and password buttons.

  2. Then, open the context (right-click) menu and then choose the Inspect option.

    Example 1

    In the Developer Tools window that opens, the details for the element you've chosen will be highlighted.

  3. Right click on the highlighted element to open the context (right-click) menu.

  4. Choose Copy.

  5. Then, choose Copy XPath.

    Example 2
  6. Then, open a text editor of your choice and paste the XPath you copied. The format of the XPath will look like this: //tagname[@Attribute='Value'].

    Input the relevant XPaths you've copied in the Authentication section when you configure Amazon Q Web Crawler connector.

Firefox

To retrieve XPaths for an Amazon Q Web Crawler

  1. Make sure you're on the web page you want to crawl. Then, either select or click on the web page element you want to retrieve the XPath for. This could be the username or password fields, or the username and password buttons.

  2. Then, open the context (right-click) menu and then choose the Inspect option.

    Example 1

    In the Developer Tools window that opens, the details for the element you've chosen will be highlighted.

  3. Right click on the highlighted element to open the context (right-click) menu.

  4. Choose Copy.

  5. Then, choose Copy XPath.

    Example 1
  6. Then, open a text editor of your choice and paste the XPath you copied. The format of the XPath will look like this: //tagname[@Attribute='Value'].

    Input the relevant XPaths you've copied in the Authentication section when you configure Amazon Q Web Crawler connector.

To retrieve XPaths for an Amazon Q Web Crawler

  1. Make sure you're on the web page you want to crawl. Then, either select or click on the web page element you want to retrieve the XPath for. This could be the username or password fields, or the username and password buttons.

  2. Then, open the context (right-click) menu and then choose the Inspect option.

    Example 1

    In the Developer Tools window that opens, the details for the element you've chosen will be highlighted.

  3. Right click on the highlighted element to open the context (right-click) menu.

  4. Choose Copy.

  5. Then, choose Copy XPath.

    Example 2
  6. Then, open a text editor of your choice and paste the XPath you copied. The format of the XPath will look like this: //tagname[@Attribute='Value'].

    Input the relevant XPaths you've copied in the Authentication section when you configure Amazon Q Web Crawler connector.

下一個主題:

Using the console

上一個主題:

Prerequisites
隱私權網站條款Cookie 偏好設定
© 2025, Amazon Web Services, Inc.或其附屬公司。保留所有權利。