Sign in to follow this  
Followers 0
codernoobx

Can't fill input fields

5 posts in this topic

#1 ·  Posted (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.type

  • cannot 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 work
about 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
next

html 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 by codernoobx

Share this post


Link to post
Share on other sites



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

 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 :(

Share this post


Link to post
Share on other sites

phew i got it solved by carefully using _IETagNameGetCollection.My logic was flawed previously

Thanks for the help anyways

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