CaptainBeardsEyesBeard Posted September 3, 2019 Share Posted September 3, 2019 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") Link to comment Share on other sites More sharing options...
Danp2 Posted September 3, 2019 Share Posted September 3, 2019 Check the class associated with the "i" element. I'm guessing that it changes to reflect the ticked status. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
CaptainBeardsEyesBeard Posted September 5, 2019 Author Share Posted September 5, 2019 I had a look at that but it doesn't seem to change Link to comment Share on other sites More sharing options...
Danp2 Posted September 5, 2019 Share Posted September 5, 2019 You'll need to dig into the source to figure out how they track / display the status icons. Latest Webdriver UDF Release Webdriver Wiki FAQs 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