Jump to content

Determining whether a IE Button has been pressed or not?


Recommended Posts

Hi  all 

 

So I am having trouble figuring out how to determine whether a button has been pressed 

 

The button I want to determine whether is pressed is the Dealt With Centrally button 

Now I have no problem pressing it using IEAction and it's ID however I cannot tell whether it is ticked or X'd 

 

I've attached the HTML of the button and I guess here is my code so far 

$DealtWithCentrallyButtonID = _IEGetObjByID($oIE, "dealtWithCentrallyButton" & $MatterNumber)
_IEAction($DealtWithCentrallyButtonID, "click")
$WindowHandle = "Message from webpage"
WinWait($WindowHandle, "", 50)

if WinActivate($WindowHandle) then
   CheckFieldEquals($WindowHandle, "Static2", "Status changed correctly", "Confirmation of status changed correctly")

   EndIf

ControlClick($WindowHandle, "", "Button1")

 

4.png

1.png

Link to post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...