Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VFP Web automation and form filling
#9
Ozcan,

Thanks for the html.

For some reason the default requestSubmit function isn't working. Will try to figure out why that is.

The following however might be able to work around the issue.

Code:
LOCAL lcjScript LOCAL lbIsSuccess LOCAL leStatus As Long LOCAL leError As Integer lcjScript = '' TEXT TO lcjScript NOSHOW PRETEXT 7 () => {        let listele        listele = document.getElementById('btnListele');        if (listele) {          listele.click();        }      } ENDTEXT thisform.oAntView.navigateSync("https://antwise.com/demo/20231113-formSubmitButton.html",lbIsSuccess,leStatus) thisform.oAntViewDocument.RunAnonymousFunction( 1, "", lcjScript)

Your button has a onclick event, so instead of triggering submit, we're triggering the onclick event by programmatically sending a click.

Hope this helps,
Wil
Reply


Messages In This Thread
VFP Web automation and form filling - by ozcan - 2023-11-07, 12:38:29
RE: VFP Web automation and form filling - by wila - 2023-11-07, 18:26:06
RE: VFP Web automation and form filling - by wila - 2023-11-24, 19:07:01
RE: VFP Web automation and form filling - by wila - 2023-11-28, 11:50:05
RE: VFP Web automation and form filling - by wila - 2023-11-08, 15:05:52
RE: VFP Web automation and form filling - by wila - 2023-11-10, 22:04:34
RE: VFP Web automation and form filling - by wila - 2023-11-13, 12:43:43
RE: VFP Web automation and form filling - by wila - 2023-11-13, 15:39:07

Forum Jump:


Users browsing this thread: 1 Guest(s)