tom10122 Posted November 30, 2014 Share Posted November 30, 2014 I need help controlling this button, <button class="btn btn-primary has-spinner" data-bind="enable: order.enableOrderSubmit(), visible: order.showOrderSubmit(), css: { active: order.isOrderSpinnerActive() }, click: order.orderSubmit()"> <span class="spinner"><i class="fa fa-spin fa-refresh"></i></span> Confirm </button> It has no Id for me to use , or a name. I have been able to use _IEGetObjByClass along with _IEGetObjById to do the rest of the site but it does not work for this one. This button is also the only in a modal popup Link to comment Share on other sites More sharing options...
tom10122 Posted December 1, 2014 Author Share Posted December 1, 2014 Bump? Help Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted December 1, 2014 Moderators Share Posted December 1, 2014 (edited) _IEGetObjByClass Is that the one I wrote? Would help in determining where to go from here to know that. I almost posted that function again lol. Edit: I'll be real honest here. At this point, I'd elect to see if something so simple as: $oIE.document.parentWindow.eval('order.orderSubmit();') Would work... I've used that method many many times in the past. Edited December 1, 2014 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
wolf9228 Posted December 2, 2014 Share Posted December 2, 2014 (edited) button element | button objecthttp://msdn.microsoft.com/en-us/library/ie/ms535211%28v=vs.85%29.aspx http://msdn.microsoft.com/en-us/library/ie/ms537434%28v=vs.85%29.aspx #include <IE.au3> Local $oIE = _IECreate() Local $sHTML = "" $sHTML &= "<HTML>" & @CRLF $sHTML &= "<HEAD>" & @CRLF $sHTML &= "</HEAD>" & @CRLF $sHTML &= '<button class="btn btn-primary has-spinner" data-bind="enable: order.enableOrderSubmit(), visible: order.showOrderSubmit(), css: { active: order.isOrderSpinnerActive() }, click: order.orderSubmit()"> <span class="spinner"><i class="fa fa-spin fa-refresh"></i></span> Confirm </button>' & @CRLF $sHTML &= "</HTML>" & @CRLF _IEDocWriteHTML($oIE, $sHTML) _IEAction($oIE, "refresh") $oObject = $oIE.document.all For $i = 0 To ($oObject.length - 1) MsgBox(0,"MSG",$oObject($i).tagName) Next Edited December 2, 2014 by wolf9228 صرح السماء كان هنا 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