Submitting Web Form/ Clicking Blank Button

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Shizzle
Posts: 1
Joined: 06 Feb 2018, 11:07

Submitting Web Form/ Clicking Blank Button

06 Feb 2018, 11:29

I am looking to automate a webpage. I've got the basics down, and have control over most of what I need, but I've run into a snag. Here is a snip of the source code and the button that I need to 'click.' It has no Id or name to reference. Does anyone have any suggestion as to how this button should be selected?

Code: Select all

<button onClick="this.form.pageMode.value='update';
                    validateForm('edit',
                                 'ML',
                                 'OS',
                                 '1716829');"
           class="ricButtonSmall" type="button">Update</button>
I have also tried submitting this form, but am also running into issues there.

The form:

Code: Select all

<form name="frmMain" action="main.cfm" method="post">
I used this to set the update value, but am not sure how to validate the form.

Code: Select all

wb = document.getElementsbyName(frmMain)[0].value=update
Any help or suggestions are greatly appreciated!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Chunjee and 250 guests