Z
Z
zeni1agent2020-09-02 14:24:00
Automation
zeni1agent, 2020-09-02 14:24:00

How to interact with the browser in autoit?

I need to send a file to the site and then I am redirected to another page where I need to get the result. How can I do it? all code examples that I found with browser interaction for some reason do not work
For example

#include <IE.au3>
Local $oIE = _IECreate("https://beta.finance.yahoo.com/quote/%5EDJI/news",0,0,1,1)
;Sleep(10000)
Local $oLis = _IETagNameGetCollection($oIE, "span")
For $oLi In $oLis
 If StringInStr ($oLi.outerhtml,'class="quote-price"')>0 Then
   Local $oLiHtml=_IEPropertyGet($oLi,"innerhtml")
  Global $Num=$oLiHtml
 EndIf
next
_IEQuit($oIE)
MsgBox(0,"",$Num);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Belfigor, 2020-09-03
@AdminGuide

There is a chance that the site no longer supports the version of IE that the autoit is trying to use. Therefore, you most likely need to look for third-party UDFs to work with browsers through some of their APIs. I always when I need something and it's not available on https://autoit-script.ru , then on the official forum you can definitely find something in English.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question