Arclite86 Posted September 21, 2014 Posted September 21, 2014 I finally found a way to work with Internet-explorer but now Its a long time ago I used IE and forgot about some IE functions I am trying to click a submit buttonĀ but it doesn wotk, this is the info about the button: <button type="submit" class="submit btn primary-btn flex-table-btn js-submit"> Inloggen </button> If have tried this: Local $oForm = _IEFormGetObjByName($oIE, "button") _IEAction($oForm,"button") Sleep(1000) Local $oButs = _IETagNameGetCollection($oIE, "button") For $oBut In $oButs If StringInStr($oBut.innertext, "Inloggen") Then _IEAction($oButs,"click") Next Local $oForm = _IEFormGetCollection($oIE, 0) _IEFormSubmit($oForm) and _IEFormSubmit but they didnt work Could somebody please help me
Solution Danp2 Posted September 21, 2014 Solution Posted September 21, 2014 If StringInStr($oBut.innertext, "Inloggen") Then _IEAction($oButs,"click") You are referencing the collection instead of the individual button. Try: If StringInStr($oBut.innertext, "Inloggen") Then _IEAction($oBut,"click") Latest Webdriver UDF Release Webdriver Wiki FAQs
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