Mecrazycoder Posted September 8, 2009 Share Posted September 8, 2009 Hi Friends, I like to know whether AutoIT supports automating web pages containing Javascript/Ajax. If yes,please let me know any one UDF. Tanx in advance [size="4"][font="Arial Narrow"][font="Garamond"]Attitude is a little thing that makes a big difference[/font][/font][/size][indent][/indent] Link to comment Share on other sites More sharing options...
jvanegmond Posted September 8, 2009 Share Posted September 8, 2009 You can "inject" Javascript directly into the page using _IENavigate. Just navigate to "javascript:yourcode". github.com/jvanegmond Link to comment Share on other sites More sharing options...
Mecrazycoder Posted September 8, 2009 Author Share Posted September 8, 2009 You can "inject" Javascript directly into the page using _IENavigate. Just navigate to "javascript:yourcode".Cool dude..Let me try it and get back to you if i need any clarification [size="4"][font="Arial Narrow"][font="Garamond"]Attitude is a little thing that makes a big difference[/font][/font][/size][indent][/indent] Link to comment Share on other sites More sharing options...
DaleHohm Posted September 8, 2009 Share Posted September 8, 2009 To the browser, in the end, it is all HTML (or more precisely the DOM). You need to understand more about the plumbing (the dynamic creation of the HTML) when AJAX/Javascript is heavily used, but both IE.au3 that ships with AutoIt and the FF.au3 for Firefox you'll find in the forum apply. That said, making automation of such a site be your first attempt at automating a website may be special a challenge. 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