The Test Entry tool lets you check whether PriceFetchWP can successfully reach an external product page and find a price using the current configuration of a URL Entry.
It is one of the best ways to confirm that a PriceFetchWP setup is working before using it on your pages, posts, or WooCommerce products.
- – Where to Find Test Entry
- – Enter the Exact Product URL
- – Understanding the Test Result
- – N/A vs. —
- – No Selector Match Found
- – Fetch Failed
- – Sale Price and Regular Price
- – Sale Match and Regular Match
- – Testing Script Selectors
- – Testing “Also Check” Selectors
- – Fetch Mode
- – Proxy Cost
- – HTTP Status
- – SSL / TLS Connection Information
- – See Raw HTML
- – Testing Advanced Options
- – Testing Affiliate Entries
- – Reverse Order
- – Timing
- – Test Entry and Logging
- – Run Another Test
- – A Good Testing Workflow
- ⚠️ If the Test Still Doesn’t Work
- – Test Before You Use It
You can use Test Entry to check:
- Whether the external page can be fetched
- Whether your Sale Price or Regular Price selector matches
- Which selector produced the price
- What price PriceFetchWP found
- Whether a proxy or Affiliate API is being used
- HTTP and connection information
- Request and total test timing
- Proxy cost when available
- The raw HTML PriceFetchWP received from the source
You can also test changes before saving the URL Entry, making it easy to adjust selectors or Advanced Options and immediately test them again.
– Where to Find Test Entry
Go to:
WordPress Dashboard → PriceFetchWP → URL Entries
Find the URL Entry you want to test.
Under that entry, click: Test Entry
PriceFetchWP will ask for the exact product or page URL you want to test.
– Enter the Exact Product URL
Your URL Entry normally contains the domain PriceFetchWP uses to determine which configuration should handle an external URL.
For example:
example.comThe Test Entry tool needs the exact page containing the price.
For example:
https://example.com/products/example-productClick: Test now
PriceFetchWP will fetch that page and evaluate the selectors and Advanced Options currently shown in the URL Entry.
– Understanding the Test Result
A Test Entry result will generally fall into one of three categories:
- Price found
- No selector match found
- Fetch failed
Price Found
If PriceFetchWP successfully retrieves the source and finds at least one valid price, you will see:
Price found
For example:
Sale price 29.99
Regular price 39.99PriceFetchWP may find:
- only a Sale Price
- only a Regular Price
- both prices
depending on the selectors you configured and the pricing available on the tested product.
– N/A vs. —
Test Entry distinguishes between a selector that was not configured and one that was configured but did not return a usable price.
N/A
N/A means you did not configure a selector for that price type.
For example, if you only entered a Regular Price selector:
Sale price N/A
Regular price 34.99
Sale match N/A
Regular match row 1 / XPATH / ...Nothing is wrong with the Sale Price test. PriceFetchWP simply had no Sale Price selector to test.
—
A dash means a selector was configured, but no usable price was returned for that price type.
For example:
Sale price —
Regular price 34.99This may be completely normal.
A product may not currently be on sale, or an embedded field such as a compare-at price may return $0.00, indicating that no separate Regular Price is available.
– No Selector Match Found
You may see: No selector match found
This means PriceFetchWP successfully retrieved usable page content, but the current selector configuration did not produce a valid price.
Check:
- The selector type
- The selector value
- Whether you entered the exact product URL
- Whether the price exists in the HTML PriceFetchWP received
- Any Also check selectors configured for the entry
PriceFetchWP currently supports:
- XPath
- ID
- Class
- Script
If you are still working on your selectors, see: Finding Price Selectors
– Fetch Failed
If you see: Fetch failed
PriceFetchWP was unable to retrieve usable content for the price test.
Possible causes include:
- The source website blocked the request
- The request timed out
- The source returned an HTTP error
- The website is rate limiting requests
- A proxy provider could not retrieve the page
- An Affiliate API request failed
- A server or SSL/TLS connection problem occurred
Test Entry may display a Hint with additional information when it recognizes certain types of failures.
– Sale Price and Regular Price
Test Entry displays separate results for:
- Sale price
- Regular price
For example:
Sale price 24.99
Regular price 34.99means both price types were found.
If you see:
Sale price N/A
Regular price 34.99no Sale Price selector was configured.
If you see:
Sale price —
Regular price 34.99a Sale Price selector was configured, but it did not return a usable Sale Price for that product.
For the best test, try several products from the same website—including normally priced and sale-priced products when available.
– Sale Match and Regular Match
Test Entry also shows which selector produced the price.
For example:
row 1 / CLASS / product-priceor:
row 1 / SCRIPT / #viewed_product::PriceThis tells you:
- Which selector row matched
- Which selector type was used
- Which selector value produced the price
If that price type was not configured, the match will show:
N/AIf selectors were configured but none produced a usable price, the match may show:
NoneThis becomes especially useful when a URL Entry contains Also check fallback selectors.
– Testing Script Selectors
Test Entry supports PriceFetchWP’s Script selector type.
For example:
#viewed_product::Pricemay be used to retrieve a Price field from supported script data already present in the page source.
Test Entry will show the selector type and script expression when it produces a match:
row 1 / SCRIPT / #viewed_product::PriceScript selectors read compatible data already contained in the fetched HTML.
They do not execute JavaScript.
If a price is only created after JavaScript runs in a browser, a normal Direct Fetch may not contain that price.
– Testing “Also Check” Selectors
A URL Entry can contain additional Also check selector rows.
PriceFetchWP works through the configured selectors until it finds a usable price.
For example:
Row 1
Class: product-priceAlso check
Class: current-priceIf the first selector does not produce a price but current-price does, Test Entry will show which row ultimately matched.
This is useful for websites that use different markup across products or page layouts.
– Fetch Mode
Test Entry shows how the request was performed.
Depending on the URL Entry configuration, the result may include:
- Direct fetch
- PhantomJSCloud
- ScrapFly
- Affiliate API information
This confirms that the Advanced Options currently shown for the URL Entry were actually used during the test.
For example, if you enable ScrapFly for the entry and run Test Entry again, the result should indicate that the proxy provider was used.
– Proxy Cost
When a supported proxy provider reports the cost of a request, Test Entry may also display: Proxy cost
For example:
Proxy cost 25 credit(s)This can be useful when testing services such as ScrapFly, where different websites may require different request resources.
See the documentation for your selected proxy provider for additional information about provider usage and pricing.
– HTTP Status
Test Entry displays the HTTP status returned during the fetch when available.
Common examples include:
200 OK
200 OKThe request completed normally.
403 Forbidden
403 ForbiddenThe source may be blocking the request.
See: Blocked Requests
404 Not Found
404 Not FoundCheck that the exact product/page URL is correct.
429 Too Many Requests
429 Too Many RequestsThe source may be rate limiting requests.
500 / 502 / 503 / 504
These may indicate a temporary problem with the source website or selected fetch provider.
Test Entry may display an additional troubleshooting Hint for recognized HTTP or connection errors.
– SSL / TLS Connection Information
If a Direct Fetch fails with a recognized SSL/TLS-related connection error, Test Entry may also display information about the server’s cURL and SSL/TLS environment.
For example:
Server TLS cURL 7.85.0 / OpenSSL/1.0.2uThis information can help identify whether the WordPress server’s networking environment may be contributing to the connection problem.
– See Raw HTML
When page content is available, Test Entry provides a: See raw HTML link.
This downloads the page content that PriceFetchWP actually received during the test.
This can be extremely useful when a price appears in your normal browser but PriceFetchWP cannot find it.
The content returned to your WordPress server may not always be identical to what you see in your browser.
For example, an external website may:
- Add a price later using JavaScript
- Return different content to server-based requests
- Return an access or verification page
- Remove portions of the normal page
- Change content depending on the request or visitor
If your selector looks correct but Test Entry cannot find the price, inspect the downloaded HTML for:
- The expected price
- Your expected ID
- Your expected class
- Script data containing the price
- Nearby HTML you saw while inspecting the product page
If the expected price does not exist anywhere in the HTML PriceFetchWP received, changing the selector alone may not solve the problem.
Note: Very large raw HTML captures may be truncated.
– Testing Advanced Options
Test Entry uses the current Advanced Options shown for the URL Entry, even if you have not saved your latest changes yet.
This makes it useful for comparing different fetch configurations.
For example, if a Direct Fetch receives a 403 Forbidden response, you could:
- Open Advanced Options
- Enable a supported proxy provider
- Run Test Entry again
- Compare the result
You can use the same approach when adjusting:
- request headers
- timeout
- proxy settings
- SSL Verification
- Affiliate Integration
Once you find a configuration that works, remember to save the URL Entry.
– Testing Affiliate Entries
If Affiliate mode is enabled for the URL Entry, Test Entry uses the selected Affiliate API as the price source.
Normal XPath, ID, Class, or Script selectors are not used for the affiliate price request.
The result can show information identifying the Affiliate API/provider and the price returned by that provider.
See: Affiliate Integration for additional setup information.
– Reverse Order
If the selector row that finds the price has Reverse order enabled, Test Entry applies that setting during the test.
The result will indicate:
Reverse Applied to matched selector row.This lets you confirm the final Sale Price and Regular Price interpretation before saving the URL Entry.
– Timing
Test Entry displays request timing information.
A Direct Fetch may show something similar to:
Request: 462ms; Total test: 499msThis can help you compare how quickly different fetch configurations respond.
Proxy or other fetch modes may display slightly different timing information depending on how the request is performed.
Timing can vary between tests because it depends on:
- the external website
- your WordPress server
- network conditions
- the selected proxy provider
- JavaScript rendering
- the external provider’s response time
– Test Entry and Logging
When PriceFetchWP logging is enabled, Test Entry activity is also recorded in the logs.
Test-generated entries are identified with:
[TEST]For example:
[INFO] [fetch] [TEST] Source page fetchedor:
[INFO] [selector] [TEST] Sale price matchedThis makes it easier to distinguish manual Test Entry activity from normal PriceFetchWP requests.
If a configured selector returns a zero value such as $0.00, PriceFetchWP may record that as informational rather than treating it as a selector error.
See: Logging & Debugging for more information.
– Run Another Test
After a test completes, click: Run Another Test
to test another product/page URL using the same current URL Entry configuration.
We strongly recommend testing several URLs before considering a selector setup complete.
Try:
- A normally priced product
- A product currently on sale
- Products from different categories
- Products using different page layouts, if applicable
A selector that works on one product is useful.
A selector that works consistently across the website is what you are looking for.
– A Good Testing Workflow
When creating a new URL Entry:
- Add the domain
- Enter your Sale Price and/or Regular Price selector
- Select the correct selector type
- Click Test Entry
- Enter the exact product/page URL
- Confirm that PriceFetchWP can retrieve the page
- Confirm the correct price was found
- Check which selector produced the match
- Test additional products from the same website
- Add Also check selectors if needed
- Adjust Advanced Options if the website requires them
- Save the URL Entry once you are satisfied with the results
⚠️ If the Test Still Doesn’t Work
First determine which type of problem you are seeing.
The Page Fetches, but No Price Is Found
Focus on:
- Selector type
- Selector value
- Sale vs. Regular Price configuration
- Also Check selectors
- Script selectors
- Raw HTML
The Page Cannot Be Fetched
Focus on:
- HTTP status
- Timeouts
- Website blocking
- Connection errors
- Proxy configuration
- Advanced Options
See:
- Blocked Requests
- Proxy Integration
- Advanced Options (Per URL Entry)
You Need More Information
Check: Logging & Debugging
PriceFetchWP logs can provide additional information about Test Entry requests, selector matching, APIs, proxy activity, and fetch behavior.
– Test Before You Use It
Test Entry removes much of the guesswork from configuring an external price source.
Instead of saving a selector and hoping it works, you can verify the exact URL, fetch method, matched selector, extracted price, timing, and returned page content directly from the PriceFetchWP dashboard.
Whenever you create or modify a URL Entry, Test Entry should be one of your final steps before putting that configuration into use.