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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Click Continue on Server Security in IE

Status
Not open for further replies.

JasonEnsor

Programmer
Sep 14, 2010
193
GB
Hi Guys,

I am writing some login scripts to use at work and seem to be hitting a problem. I get the "There is a problem with this website's security certificate." What i am trying to do is find the link on the page and click to continue. Obviously this in place for a reason, however i want to bypass this as i am trying to automate loging in to my workplaces website.
Code:
Dim LinkHref
Set IE = CreateObject("InternetExplorer.Application")
IE.navigate "[URL unfurl="true"]https://websiteaddresshere"[/URL]
IE.Visible = True

While IE.Busy
    'WScript.Sleep 50
	For Each Link In ElementCol
		If Link.innerHTML = "Continue to this website (not recommended)." Then
			Link.Click
			Exit For
		End If
	Next
		IE.ServerCertificateValidationCallback = True
		
Wend

Any ideas on what i could do to rectify this issue and click that darn link?

Many thanks in advance

J.

Regards

J.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top