ahinga80
(A Hinga)
August 24, 2023, 1:40am
1
trying to configure monitor on marriott’s page. for example
https://www.marriott.com/reservation/availabilitySearch.mi?isSearch=false&propertyCode=NYCWH&clusterCode=none&fromDate=12/25/23&toDate=12/27/23
I’d like to configure an alert to notify me if any of those prices change.
Ive tried selecting the entire frame
(//div[@id='main-content']/div[contains(@class,'aem-container')]/div)[4]
as well as just textcontent but both give me errors
ajitk
(Ajit)
August 24, 2023, 7:51am
2
Hello @ahinga80 , I tried the following config for the mentioned URL:
{
"selections": [
{
"frames": [
{
"index": 0,
"excludes": [],
"includes": [
{
"type": "xpath",
"expr": "(//div[@id='tab1']/div//div[contains(@class,'rate-type')]/div[contains(@class,'l-row')])[1]",
"fields": [
{
"name": "text",
"type": "builtin"
}
]
}
]
}
],
"dynamic": true,
"delay": 5
}
],
"ignoreEmptyText": true,
"includeStyle": false,
"dataAttr": "text",
"regexp": {
"expr": "",
"flags": "gim"
}
}
Since the linked URL redirects to a different URL, I made two changes:
Edited the monitor’s URL to be the initial URL (the one you shared earlier)
Increased the delay to 5
It worked fine for a few test checks. Ref screenshot:
What error did the monitor encounter? Check the monitor’s error log and the error’s details to check the page’s snapshot.
ahinga80
(A Hinga)
August 25, 2023, 2:28am
3
ahinga80
(A Hinga)
August 25, 2023, 2:32am
4
ajitk
(Ajit)
August 25, 2023, 12:58pm
5
The error page is displayed when the URL being opened is incorrect. Can you double check that the monitor’s URL is what you shared earlier or in the last post?