Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

Why Run as admin for Website automation ?

$
0
0
Hello,

I am developing a website automation form application which just opens the Internet Explorer and fills required fields of the website . That was working great in IE10 and lower versions.

But in IE11 (Windows 10) my application is not working, It opens the given URL, but required fields are not filling up. When I run the same exe as administrator it works properly in IE11.

I can manually run IE11 and navigate to that URL without admin privileges.

Why run as admin is required just to navigate given URL and fill the required fields ? What permission did it get by running as Admin in my case ?

Here is my vb6 code.

Dim WithEvents Web  As SHDocVw.InternetExplorer
Private Sub Form_Load()
                Set Web = New SHDocVw.InternetExplorer
                Web.Visible = True
                Web.Navigate "http://incometaxindiaefiling.gov.in/e-Filing/UserLogin/LoginHome.html";
End Sub
Private Sub Web_DocumentComplete(ByVal pDisp As Object, URL As Variant)
On Error GoTo aaa
                msgbox "   URL: " & URL
                if url = "http://incometaxindiaefiling.gov.in/e-Filing/UserLogin/LoginHome.html"; then
                Web.Document.getElementById("Login_userName").Value = "abcde1111h"
                Web.Document.getElementById("Login_userName").onchange
                Web.Document.getElementById("Login_password").Value = "123456789"
                Web.Document.getElementById("dateField").Value = "15/09/1954"
                end if
Exit Sub
aaa:
MsgBox Err.Description & "   URL: " & URL
End Sub
Private Sub Web_OnQuit()
MsgBox "OnQuit fired" 

Please help


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>