Fix the “Element Not Found” error
  • Updated on 25 Mar 2020
  • 1 minute to read
  • Contributors
  • Print
  • Share
  • Dark
    Light

Fix the “Element Not Found” error

  • Print
  • Share
  • Dark
    Light

An Element Not Found error can appear while you're building, testing, or running your agent in the Web Console. When this happens, an agent didn't find an element on the page that it was expecting to find. This happens frequently when the web page content or design has been updated.

Fix the Element Not Found Error_Image1(1)

To fix an Element Not Found Error

  1. Scroll to the element in the Action list that is highlighted in red.

This indicates the data that couldn’t be captured.

  1. Determine if the targeted element (link, text, image, etc.) is missing, moved to a different location on the page, or simply loads in a different location on different page visits. (Some retail websites re-arrange product items when you re-visit the site.)
  • If the item is missing, set the action to be optional.
  • If you find the item sometimes loads in a different location on the page, add an alternate location.
  • If the item has moved to a different location on the page, reassign the action's location.

Example

In the image below, notice that the price in the upper right-hand side of the image has nothing above it, while the price in the lower right-hand side of the image has the textPrice Match Guarantee above it. This means the second price is in a different location relative to its product title. In this example, the second price wasn't found because of the way the element's XPath was captured.

Fix the Element Not Found Error_Image2(1)

Was this article helpful?