Page 1 of 1
Website Monitoring
Posted: Wed Feb 13, 2019 11:03 am
by emartine
I was asked to search for a string on a web page to ensure that the page is available so I used the web monitoring wizard only to find it fail because the page requires java script. The index.html file gives a generic message.
JavaScript is either disabled in or not supported by the Web browser.
To continue logon, use a Web browser that supports JavaScript or enable JavaScript in your current browser.
Although I can probably monitor this, it wouldn't be monitoring what a user would experience should the main page go down.
Is there any way to monitor the content of a web page that requires javascript?
Re: Website Monitoring
Posted: Wed Feb 13, 2019 3:52 pm
by cdienger
I'm not aware of anything that will process javascript, but are you seeing this message when you view the source of the index.html or is this just what is seen when you point your browser to it? Sometimes these messages are will display if javascript can't run but the source will show the javascript that was intended to run.
Re: Website Monitoring
Posted: Wed Feb 13, 2019 8:31 pm
by emartine
I did a wget against the url and the index file is what comes up.
Re: Website Monitoring
Posted: Thu Feb 14, 2019 11:11 am
by mcapra
emartine wrote:I did a wget against the url and the index file is what comes up.
As in the index file with the fully rendered content you expect, or the index file with the "Javascript errors", or the un-rendered raw HTML with no Javascript evals?
My hunch is this has to do with the page you're retrieving requiring you to set/provide cookies before fully loading the content. check_http and cURL aren't very good at doing that in a single step.
There's probably things you can do to trick the page into accepting a check_http or cURL request, but without knowing more about the underlying Javascript supporting this website I'd have no idea where to start.
You could try something like
CasperJS, Selenium, or the
Web Transaction wizard (which uses
WebInject).
Re: Website Monitoring
Posted: Thu Feb 14, 2019 11:33 am
by cdienger
Thanks for the input,
@mcapra.
Re: Website Monitoring
Posted: Thu Feb 14, 2019 11:56 am
by emartine
Please close this. I'll use another tool for monitoring the site. Thank you.
Re: Website Monitoring
Posted: Thu Feb 14, 2019 12:06 pm
by scottwilkerson
emartine wrote:Please close this. I'll use another tool for monitoring the site. Thank you.
Locking