damilien Posted October 12, 2018 Posted October 12, 2018 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") _IELoadWait($oIE,2000) Is there a function based on the button name? I thank you in advance for your help.
FrancescoDiMuro Posted October 12, 2018 Posted October 12, 2018 2 minutes ago, damilien said: $oSubmitClick = _IEGetObjById($oIE,"b-modal-dialog-buttons") 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 Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
damilien Posted October 13, 2018 Author Posted October 13, 2018 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") EndIf Next
FrancescoDiMuro Posted October 13, 2018 Posted October 13, 2018 Happy to have helped Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
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