Can xpath "and" be used as a filter #1173
-
I am having trouble designing an xpath filter to reliably grab the price of a product on home depot. I have a filter which I believe would work when dealing with standard prices, sale prices, special prices, etc., but change detection is throwing the error. "Warning, filter '//div[contains(@Class, "zone-card") and contains(@Class, "zone-card--pricing")]//div[@Class="price-detailed__wrapper"]//div[@Class="price"]/div[@Class="price-format__large price-format__main-price"]/span[not(@Class="price-format__large-symbols")]' not found" I am able to use this xpath filter below in the chrome inspector just fine. I have a 10-second wait for the page to load in ChangeDetection.io. My guess is the contains/and portion is creating the error.
The specific product which is giving me issues is |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
https://github.com/dgtlmoon/changedetection.io/wiki/JSON-Selector-Filter-help#filter-compatibility-with-other-json-selector-libraries mark this as your answer |
Beta Was this translation helpful? Give feedback.
https://github.com/dgtlmoon/changedetection.io/wiki/JSON-Selector-Filter-help#filter-compatibility-with-other-json-selector-libraries mark this as your answer