Hi, we've had a request to implement monitoring against a web platform, one of the considerations they've asked for however is that if the website is in maintenance mode then the system should continue to report as available (not callout).
We've seen with a standard journey we;
1. Access the URL
2. Enter username
3. Enter password & login
4. enter postcode
We've seen when the maintenance mode is active, the journey fails at step 4.
As a means to skip the rest of the journey if some text is present (indicating maintenance mode) i've tried to implement the following;
I'm seeing failures when running this against the active site (in xxxx.live.dynatrace.com). Could anyone advise if it's possible to implement a function that would do this?
Solved! Go to Solution.
Best wishes, Hannah
Hi @Hannah M.
document.documentElement.textContent || document.documentElement.innerText
).indexOf('The website is currently undergoing maintenance, please try again later.') > -1
// Do something...
This event is set at position 4 & there are 25 total events, does this look correct?