Rajneesh Rawat
New Member
- Joined
- Mar 31, 2017
- Messages
- 36
Hi All,
I am trying to doing web scrapping through VBA. Login website is working perfect but m stuck in next step where i need help to choose a right property to navigate. Below is the HTML codes extract via inspect element.
and below is my VBA code:
I am trying to doing web scrapping through VBA. Login website is working perfect but m stuck in next step where i need help to choose a right property to navigate. Below is the HTML codes extract via inspect element.
and below is my VBA code:
Code:
Sub xyz()
Dim butt As Object
Dim objcoll As Object
Dim appIE As Object
Set appIE = CreateObject("internetexplorer.application")
With appIE
.navigate "https://acme-test.uipath.com/account/login"
.Visible = True
End With
Do While appIE.Busy
DoEvents
Loop
Set UserN = appIE.document.getElementsByName("email")
Application.Wait (Now + TimeValue("0:00:10"))
UserN(0).Value = "XYZ@gmail.com"
Set pswd = appIE.document.getElementsByName("password")
pswd(0).Value = "abcdef"
appIE.document.getElementById("buttonLogin").Click
Set ojcoll = appIE.document.getElementById("/work-items").href
appIE.document.getElementByname("/work-items").Click
'-------HTML CODE---------------
"<a href="/work-items"><button class="btn btn-default btn-lg" type="button">
<i class="fa fa-folder-open-o" aria-hidden="true"></i> Work Items</button></a>"
'--------------------------------------
Set appIE = Nothing
End Sub
Last edited: