When using the Automated Test Framework for a catalog item when the catalog Item field 'Use cart layout' is false.
Error appears:
Error 'FAILURE: Cannot find 'Add to Cart' button.

Steps to Reproduce


  1. Create a test.
  2. Add a step to Open a catalog item, such as a standard laptop. Make sure item is set to Use cart layout = false.
  3. Add the step Add item to shopping cart.
  4. Test Run.

An error appears: "Error 'FAILURE: Cannot find 'Add to Cart' button."


If 'use cart layout' via system property glide.sc.use_cart_layouts is false, please refer to PRB1192151.

If 'use cart layout' is set on the item itself, there is no workaround for this.

To receive notifications when more information is available, subscribe to this Known Error article by clicking the Subscribe button at the top right of the article. If you are able to upgrade, review the Fixed In field to determine whether any versions have a permanent fix.

Related Problem: PRB1245444

Seen In

Jakarta Patch 6

Intended Fix Version


Fixed In

Jakarta Patch 9
Kingston Patch 3

Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-06-19 15:26:35