Simon icon Simon
Flexible server monitoring

Introducing Simon 5!

Simon version 5 is now available. It is a massive update, introducing a much-requested feature: syncing the Simon data between multiple Macs, plus a Simon Status service, a Link Checker filter, improved Find filter, iMessage and Speak Error notifiers, a new app icon, and much more.

Important: please note that Simon 5 requires a minimum of macOS 10.12 (Sierra), and is a paid upgrade from Simon 4. Purchasers since September 1, 2020 automatically get a version 5 license (that also works in previous versions).

Read the Simon What's New page for details.

How to simulate click on a webpage?

Hello to everyone, my first post here.

I have a question. I want to monitor a webpage for changes, unfortunately the changes on that webpage are made only if I press a specified button, more exactly the GO! button on this page:

The question is how to do a click on the GO! button and how to get the response data from that webpage?

David Sinclair's picture

Re: How to simulate click on a webpage?


The normal approach to monitor forms is to use the form's action URL as the URL in Simon's test, use the Post method, and list the parameters from the form fields in the test.

However, in this case the submit button runs a JavaScript function, which is located in an external file. That makes it trickier.

One possibility is that I notice the same JavaScript function is called when the page is loaded (search the source for "initMakeup"). So it's possible if you just use the page URL, a Post method, and the form parameters, that might work. The only parameter seems to be a text field named, imaginatively enough, "textfield".

Re: How to simulate click on a webpage?

Looks so complicated....
I can't understand this part: "list the parameters from the form fields in the test"
Under the Post Method is a field called "Parameter" and other "Value", but I can't understand what information I need to enter there.

Also I need to use the Service:Web(HTTP) and use the URL: ?

David Sinclair's picture

Re: How to simulate click on a webpage?

Web forms contain controls like checkboxes, radio buttons, popup menus, and text fields. When you click a Submit button, the web page sends the values for those fields (using the "name" and "value" properties) as POST parameters.

So for Simon to simulate submitting a form, you can specify the needed form fields as parameters, where the field "name" is in the "Parameter" column, and the field "value" is in the "Value" column.

Yes, you'd use the Web (HTTP) service, with that URL.

I hope this is more clear.