seesee Posted December 3, 2011 Posted December 3, 2011 (edited) Hi, I am using Windows 7, 64 bit and IE9. I intend to click a link on gooogle search result. The last "Click" is not workable to enter into the web page. Attached is my code: Error shows: --> IE.au3 V2.4-0 Error from function _IEPropertyGet, $_IEStatus_InvalidObjectType Could anyone kindly help me on this? Thank you very much in advance. SusanNew Text Document.au3 Edited December 3, 2011 by seesee
Andreik Posted December 3, 2011 Posted December 3, 2011 Well, you have to be very sure you'll get a link with text "Peugeot - Pricing & Specification". Maybe it's better to test each word separately. Something like: For $oLink in $oLinks $sLinkText = _IEPropertyGet($oLink, "innerText") If StringInStr($sMyString,"Peugeot") Then If StringInStr($sMyString,"Pricing") Then If StringInStr($sMyString,"Specification") Then _IEAction($oLink,"click") EndIf EndIf EndIf Next For example for me do not appear text "Peugeot - Pricing & Specification" on the first page.
Exit Posted December 3, 2011 Posted December 3, 2011 use 3.3.7.21 Beta App: Au3toCmd UDF: _SingleScript()
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now