Gaurav Posted April 15, 2007 Share Posted April 15, 2007 $uname="u2024891486" _IEFormElementSetValue($oUserName,$uname) # $oUserName is the reference to the object (text box) I am using the above staements for entering a text in a textbox of a jsp page. however, when the script is run, it does not enter any value in the textbox and also does NOT give any error. It exits with a value of 1(success). Is something wrong with these statements or is there any other alternative? Please help. Link to comment Share on other sites More sharing options...
DaleHohm Posted April 15, 2007 Share Posted April 15, 2007 $uname="u2024891486"_IEFormElementSetValue($oUserName,$uname)# $oUserName is the reference to the object (text box)I am using the above staements for entering a text in a textbox of a jsp page. however, when the script is run, it does not enter any value in the textbox and also does NOT give any error. It exits with a value of 1(success).Is something wrong with these statements or is there any other alternative?Please help.Please verify the object you are working with:ConsoleWrite("tagname: ", $uname.tagname & @CR)ConsoleWrite("objname: ", ObjName($uname) & @CR)It is also possible that code on the page is disabling the control... try:_IEAction($uname, "enable")Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
Gaurav Posted April 16, 2007 Author Share Posted April 16, 2007 INPUT DispHTMLInputElement This is the response i got after running those 2 statements. What does this mean? Link to comment Share on other sites More sharing options...
DaleHohm Posted April 16, 2007 Share Posted April 16, 2007 Please get the result of these calls and post the SciTe console output: ConsoleWrite("objname: " & ObjName($uname) & @CR) ; DOM Object name ConsoleWrite("tagname: " & $uname.tagname & @CR) ; tagname in HTML ConsoleWrite("type: " & $uname.type & @CR) ; type of INPUT element ConsoleWrite("disabled: " & $uname.disabled & @CR) ; has it been disabled? ConsoleWrite("html: " & $uname.outerHTML & @CR) ; show me the HTML for the element Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
Gaurav Posted April 16, 2007 Author Share Posted April 16, 2007 Thanks Dale. I got it to work. was using the wong object. 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