codernoobx Posted April 23, 2013 Share Posted April 23, 2013 (edited) Problem:cannot find element by using $fm.classname (please look at the input tag in the html source-no other attributes are available)cannot find element by using $fm.typecannot click the input field. cannot fill the input field with text i tried most of the ie udf ,but something is wrong and i cant get it to workabout the input field:its a tricky one ,i need to click it for getting focus before passing on some text to it.my code does not work !$oFormElements = _IEFormElementGetCollection($oForm) _IELoadWait($oIE) for $fm in $oFormElements if ($fm.tagName=='input') Then _IEAction($fm, "click") _IEFormElementSetValue($fm, "found you") EndIf nexthtml source of sub form element<input type="text" class="GIL3GQOBPDC titleField textField GIL3GQOBODC" size="60" title="Title" dir="ltr">*its a sub form element. Edited April 23, 2013 by codernoobx Link to comment Share on other sites More sharing options...
Mechaflash Posted April 23, 2013 Share Posted April 23, 2013 First off, check the return values (or if applicable @error) of each of the functions. That'll tell you where the error is occurring. Spoiler “Hello, ladies, look at your man, now back to me, now back at your man, now back to me. Sadly, he isn’t me, but if he stopped using ladies scented body wash and switched to Old Spice, he could smell like he’s me. Look down, back up, where are you? You’re on a boat with the man your man could smell like. What’s in your hand, back at me. I have it, it’s an oyster with two tickets to that thing you love. Look again, the tickets are now diamonds. Anything is possible when your man smells like Old Spice and not a lady. I’m on a horse.” Link to comment Share on other sites More sharing options...
jdelaney Posted April 23, 2013 Share Posted April 23, 2013 focus on the element instead of clicking it: _IEAction($fm, "focus") IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
codernoobx Posted April 23, 2013 Author Share Posted April 23, 2013 i tried that but the cursor wont show focus on the element instead of clicking it: _IEAction($fm, "focus")i tried that but the cursor wont show Link to comment Share on other sites More sharing options...
codernoobx Posted April 25, 2013 Author Share Posted April 25, 2013 phew i got it solved by carefully using _IETagNameGetCollection.My logic was flawed previously Thanks for the help anyways Link to comment Share on other sites More sharing options...
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