Replies: 1 comment 1 reply
-
is testing whether there is at least one element in the document whose text content matches the case-insensitive pattern 'x'. try this filter is - I dont know why yours doesnt work... some weird space in there? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am fairly new to Changedetection and Xpath but have it all running now. However, I run into an issue that I really cannot solve myself now. For example, with Plaintext/HTTP Client:
URL: https://www.bing.com/search?q=Nieuwstraat+75%20a+Groningen
Xpath Filter: xpath: if (count(//a[matches(.,'x', 'i')]) >0 ) then "Yes it exists!" else "no sorry not here"
returns: Exception: 'str' object has no attribute 'name'
I tried xpath 1.0 (which was recommended as a workaround in another discussion), which works in general, but unfortunately does not support the If statement as far as I know. Changing the text in the filter (" x") or modifying the URL in some occasions suddenly solves the issue... For example, the following (shorter) url works "https://www.bing.com/search?q=Nieuwstraat"
This makes it really confusing for me. Any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions