Jump to content

Click on button with <button name="ok">

Recommended Posts

Hi Everyone,

I need to click on this OK button but for now I can not do it



As for my previous post, I tried several codes of this forum but nothing works for now.

$oSubmitClick = _IEGetObjById($oIE,"b-modal-dialog-buttons")
_IEAction($oSubmitClick, "click")

Is there a function based on the button name?

I thank you in advance for your help.

Link to post
Share on other sites
22 hours ago, FrancescoDiMuro said:

As the function name should suggest, it gets the object by its ID.
Since you have only the class name, you should use something like this :)

It works. Thank you

Local $oBtns = _IETagNameGetCollection($oIE, "button")
For $oBtn In $oBtns
    If String($oBtn.classname) = "b-button" Then
      _IEAction($oBtn, "click")


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