Description

The Product Page Loads test ensures your stores single product pages are loading properly.

Granted your store has at least one product, Robot Ninja will navigate to the product page and test that it properly loaded by looking for the post-{id}, type-product and postid-{id} elements (where {id} is the WooCommerce product ID).

Selectors

  • Product Page Body Element 1  - We look for class name: post-{id}  
  • Product Page Body Element 2  - We look for class name: type-product  
  • Product Page Body Element 3  - We look for class name: postid-{id} 

Failed Test

Here's a list of errors that can cause the Product Page Loads test to fail and ways to fix or work around them. If there's a test that is failing and you think it shouldn't be please email us and we'll have a look for you.

"While on your Product page (PRODUCT_URL), Robot Ninja failed to find the element with the class name post-{id}/type-product/postid-{id}."

Seeing this message typically means that your theme or some custom code on your store has filtered the default WP body_class for products.

The first thing is to check the screenshot if it's available. If the screenshot shows a blank page, try manually visit your site to see if it's being displayed and check PHP error logs. It's likely there's a PHP fatal error occurring on your site.

If the screenshot looks okay, then the reason for the failed test is most likely because your store is filtering the default WP body class and removing either post-{id}, type-produce or postid-{id} class selector from <body>

What product pages are tested?

By default, Robot Ninja will fetch two of the most popular products at the time of testing, and those two products will be used throughout the current batch of tests. Products will only be chosen if they: cost more than $0.00, are visible in the shop catalog, and are in stock.

If you want to test a specific product, go into stores settings page within the Robot Ninja dashboard and fill in the Product IDs text box.

Customized Product Page

It's important you know that we've built this test with the intention of it working on the majority of WooCommerce stores out there. If you have customized WooCommerce or have purchased a theme that changes WooCommerce in a very unique way, then it's possible that this test doesn't work out of the box for you. If this is the case please contact our team in support (support@robotninja.com).

Did this answer your question?