I am trying to automate using a webpage with excel. I have managed to login to the page and select the page I need to complete some fields on however I am stuck as I can't work out how to move to another tab. On the page I need there is an area with 6 tabs in it, I want to move to a tab named "Single" but can't work out how to reference it. If I 'Inspect Element' it shows
Can anyone advise how I need to refer to the tab to be able to select it. I'm currently using the below code which works for the rest but just not the tab:
Thanks in advance.
<span>Single</span>
.Can anyone advise how I need to refer to the tab to be able to select it. I'm currently using the below code which works for the rest but just not the tab:
VBA Code:
With ie
.AddressBar = 0
.StatusBar = 0
.Toolbar = 0
.Visible = True
.Navigate sURL1
Do Until Not .Busy And .ReadyState = 4
DoEvents
Loop
'Login to site
.Document.all("login-email").Value = WebUN
.Document.all("login-password").Value = WebPass
Application.Wait Now + TimeSerial(0, 0, 2)
End With
Do Until Not ie.Busy
DoEvents
Loop
ie.Document.all("login-messenger").Click 'Press 'Login' button
'ie.Document.all("nav-sendmessage").Click
ie.Navigate sURL2 'Selects 'send' page
'<<<<<<<<< Single tab needs selecting here
ie.Document.all("quicksendnumber").Value = "TEST"
ie.Document.all("message-body").Value = "TEST"
Do Until Not ie.Busy
DoEvents
Loop
Thanks in advance.