Jump to content

Problem getting object so _IEAction will click it


Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...