weevil Posted May 5, 2015 Posted May 5, 2015 Hi All,I'm trying to create a script for an internal website process. The website doesn't have any certificates so presents with the standard IE errors. I am using the following to try and by pass:Func IsCertificateErrorPage($IEObject) local $returnVal = False If StringRegExp(_IEBodyReadText ($IEObject), "There is a problem with this website.s security certificate.") Then $returnVal = True EndIf return $returnValEndFunc and Func ContinueOnCertificateError($IEObject) _IELinkClickByText ($IEObject, "Continue to this website (not recommended).",0,0)EndFuncAfter IE Opens: If (IsCertificateErrorPage($oIE), "Yes")==0) Then ContinueOnCertificateError($oIE) sleep(500) EndIfIt doesn't click the link! any suggestions? Thanks!
JohnOne Posted May 5, 2015 Posted May 5, 2015 Explain this bit and how it even runs without error.If (IsCertificateErrorPage($oIE), "Yes") == 0) Then ContinueOnCertificateError($oIE) Sleep(500) EndIf AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
weevil Posted May 6, 2015 Author Posted May 6, 2015 (edited) Hi John, Originally that said: $BypassCertificateError an external variable that I removed whilst testing (it doesn't really need it. Here's the entire code:http://paste.ofcode.org/3aphTTb5Kgq9xSHJA6VPJz5 As you can see, I am bypassing the cert error at the moment the extremely dirty way: WinWait("Certificate Error: Navigation Blocked - Windows Internet Explorer")Send ("{TAB 10}") But I'd much rather bring back the naive method of bypassing, either by clicking the link using the commented out line:;_IELinkClickByText($oIE, "Continue to this website (not recommended).") Also - I cant seem to paste code using the code snippet - does it only work line by line or something? Edited May 6, 2015 by weevil added
Moderators Melba23 Posted May 6, 2015 Moderators Posted May 6, 2015 weevil,I do not think we are prepared to help you bypass the error given that it is placed there for a purpose. Thread locked.M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Recommended Posts