Jump to content

Help with IE Modal popups


tom10122
 Share

Recommended Posts

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

  • Moderators

_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 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

button element | button object
http://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 by wolf9228

صرح السماء كان هنا

 

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...