0gravitytampabay Posted March 17, 2014 Share Posted March 17, 2014 My script opens a web page and I’m trying to click on is a href on the page. The href on the web page that I want to click on (or run if there’s another way) is: <a class="ssSearchHyperlink" href="javascript:LaunchSearch('Search.aspx?ID=400', false, false, sbxControlID2)"> Civil, Family Case Records </a> I need help on line 5 of the script below: #include <ie.au3> $oIE = _IECreate ("https://ccmspa.pinellascounty.org/PublicAccess/default.aspx") $hIE = _IEPropertyGet($oIE, "hwnd") WinSetState($hIE, "", @SW_MAXIMIZE) $obj = _IEGetObjByName($oIE, "????????????") ; < How do I get the object so I can click on it? _IEAction($obj, "click") _IELoadWait($oIE) Link to comment Share on other sites More sharing options...
Danp2 Posted March 17, 2014 Share Posted March 17, 2014 Search the forum for _IEGetObjByClass. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
mikell Posted March 17, 2014 Share Posted March 17, 2014 _IELinkClickByText($oIE, "Civil, Family Case Records") and please use 'Code' tag when you post some code Link to comment Share on other sites More sharing options...
Palestinian Posted March 17, 2014 Share Posted March 17, 2014 (edited) Sorry didn't notice mikell's reply, thought he added the 'Code' tag to your code, the code he provided should work. Edited March 17, 2014 by Palestinian Link to comment Share on other sites More sharing options...
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