Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Click "button" in order to upload a file

$
0
0

I need to click into a div in order to open a file dialog.

 

When i browse the page source i see this

<div id="upload_a_file" content_type="files"></div>

But when i see the source using the developer tools i see this

<div id="upload_a_file" content_type="files"><div class="qq-uploader"><div class="qq-upload-drop-area" style="display: none;"><span original-title=""><img src="../fileuploader/add_file.png" alt="" border="0" class="middle" width="16" original-title=""></span></div><div class="qq-upload-button" style="position: relative; overflow: hidden; direction: ltr;"><div>Send File</div><input multiple="multiple" type="file" name="file" style="position: absolute; right: 0px; top: 0px; font-family: Arial; font-size: 118px; margin: 0px; padding: 0px; cursor: pointer; opacity: 0;" class="" original-title=""></div><span class="qq-drop-processing" original-title=""><span original-title="">undefined</span><span class="qq-drop-processing-spinner" original-title=""></span></span><ul class="qq-upload-list"></ul></div></div>

How i could click into "Send File" in order to open the file dialog ?

 

Atm i've this to click on the submit button

Global $oIE = _IECreate("link", 0,0) Local $btn_upload = _IEGetObjByName($oIE ,"upload") _IEAction($btn_upload, "click")

Viewing all articles
Browse latest Browse all 12506

Trending Articles