Jump to content

Radio Button Click


spoo
 Share

Recommended Posts

blob.thumb.png.e8b3fd32d0a6decc2a3677ce576955e6.png 

Hi All,

Iam a newBee to auto IT  , and finding it difficult to click on the radio button. 

i want to click on delete radio button and click on submit. 

code 1. ---> nothing happens

Local $oIENew = _IEAttach("https://www.net-inspect.com/AssignWorkflowToDocuments.aspx?b=a2dRm8Epis60nDimF7TNCMPpKxv%2bPGUH4YsewhvFKNU%3d","url")
Local $oForm = _IEFormGetObjByName($oIENew, "frmEditWorkflow")
_IEFormElementRadioSelect($oForm, "Delete", "chkAction", 1)

 

code  2->still no go

 


Local $oIENew = _IEAttach("https://www.net-inspect.com/AssignWorkflowToDocuments.aspx?b=a2dRm8Epis60nDimF7TNCMPpKxv%2bPGUH4YsewhvFKNU%3d","url")
Local $oForm = _IEFormGetObjByName($oIENew, "frmEditWorkflow")

 

 

   _IEFormElementRadioSelect($oForm,"Delete", "chkAction", "byValue")
    Sleep(1000)
 

Guys please help, i have deadline..

 

Auto netinspect.png

Link to comment
Share on other sites

@spoo,

Welcome to Autoit forum.

First:

8 minutes ago, spoo said:

Guys please help, i have deadline..

This forum is voluntarily helping other people like us.^_^

Second: Don't post image of script that only you can modify, at least post the real code you have and the rest will follow.;)

 

Programming is "To make it so simple that there are obviously no deficiencies" or "To make it so complicated that there are no obvious deficiencies" by C.A.R. Hoare.

Link to comment
Share on other sites

What about:

#include <IE.au3>

Local $oIENew = _IEAttach("https://www.net-inspect.com/AssignWorkflowToDocuments.aspx?b=a2dRm8Epis60nDimF7TNCMPpKxv%2bPGUH4YsewhvFKNU%3d","url")
Local $oInputs = _IETagNameGetCollection($oIENew, "input")
For $oInput In $oInputs
    If $oInput.Name = "chkAction" And $oInput.value = "Delete" Then
        $oInput.Checked = True
        ExitLoop
    EndIf
Next

 

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...