Sign in to follow this  
Followers 0
tom10122

Help with IE Modal popups

4 posts in this topic

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

Share this post


Link to post
Share on other sites



Bump? Help

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by SmOke_N

[center]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.[/center]

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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

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

 

Share this post


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
Sign in to follow this  
Followers 0