I want to click the radio button in table and fill value in box in below table
The table will pop up when I click one of this file link.
however my HTMLdocument(HTMLDoc)
feel like broken when that happen.
My code dont work to click Ok on that table
Here is my code
Set IE2 = CreateObject("InternetExplorer.Application")
apiShowWindow IE2.hwnd, SW_MAXIMIZE
'Set IE.Visible = True to make IE visible, or False for IE to run in the background
IE2.Visible = True
IE2.Visible = False
IE2.Visible = True
'Define URL
URL = "https://dgspj-prod.ptcmanaged.com/intellicus/core/SavedReportList.jsp?CATEGORYID="
'Navigate to URL
IE2.navigate URL
' Wait while IE loading...
Do While IE2.readyState = 4: DoEvents: Loop 'Do While
Do Until IE2.readyState = 4: DoEvents: Loop 'Do Until
Set HTMLDoc = IE2.document
'below not fulfilled in table
HTMLDoc.getElementById("rdbSeparatorCustom").Click
HTMLDoc.getElementById("TXT_CSV_COLUMN_SEPARATOR").Value = "~"
HTMLDoc.getElementById("rdbEnclosureCustom").Click
HTMLDoc.getElementById("TXT_CSV_COLUMN_ENCLOSURE").Value = ""
HTMLDoc.querySelector("input[value='Ok']").Click 'not work
HTMLDocDoc.getElementById("btnSubmit").Click 'not work too
Here is IE Html
<LABEL class=option-label style="MARGIN-LEFT: 42px"><INPUT onclick='fnEnableDisableControls(this,"ENCLOSURE","csv");' id=rdbEnclosureCustom type=radio value=CUSTOM name=CSV_COLUMN_ENCLOSURE_TYPE>Custom</LABEL>
<DIV class=win-btn-wpr><INPUT onclick=fnSetIsDirty();fnSubmit(); id=btnSubmit class="cssButton btn-blue" type=button value=Ok name=btnSubmit> <INPUT onclick=fnHideDiv() id=btnCancel class=cssButton type=button value=Cancel name=btnCancel> </DIV>
Thank you