Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to search for a sentence and click that on a webpage?

Status
Not open for further replies.

dheer787

Programmer
Apr 15, 2019
1
IN
How can I search for a sentence(don't have any ID and don't have any box) and clicks that on webpage? I am trying to automate my website and click on a sentence to open that.

Below is the code I tried.

url = "Set ie = CreateObject("InternetExplorer.Application")
ie.Visible = True
ie.Navigate url
While ie.ReadyState <> 4
WScript.Sleep 100
Wend
For Each a In ie.document.getElementsByTagname("Gmail")
If a.href = "javascript:addToFilter();" Then a.Click
Next
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top