taol Posted April 22, 2008 Share Posted April 22, 2008 There is a form , and a button shown " OK " in my testing page in which I want to submit it. <form name="preferenceForm" method="post" action="/cmp0306l/webcomponents/widget/preference.do"> <tr> <td colspan="2" align="right"><input value=" OK " type="submit"> ... </td> </tr> </form> I used autoIt scripts : " $oForm = _IEFormGetObjByName ($oIE, "preferenceForm") _IEFormSubmit ($oForm) " to submit or click it, but it didn't work . Can anybody give me a solution for this issue, thank you very much Link to comment Share on other sites More sharing options...
taol Posted April 22, 2008 Author Share Posted April 22, 2008 Hehe, It seems the page has multi frame, I try to use "_IEFrameGetCollection " to deel with this issue now, any other suggestion ? Link to comment Share on other sites More sharing options...
d4rk Posted April 22, 2008 Share Posted April 22, 2008 try _IEAction (xxx, "click") in your code, i can't find the name of button "ok" [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys Link to comment Share on other sites More sharing options...
DaleHohm Posted April 22, 2008 Share Posted April 22, 2008 Hehe, It seems the page has multi frame, I try to use "_IEFrameGetCollection " to deel with this issue now, any other suggestion ?If the element you want to work with is in a frame, you must use of of the _IEFrame* functions to get a reference to the frame first.You'll need to share more specific code and the output to the SciTe console to get further assistance.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...
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