Affe Posted January 21, 2011 Share Posted January 21, 2011 I had automated a program that would run through an online system using _IENavigate(). It seems the company did an update, and now _IENavigate will return me a timed out session, but if I use the javascript menu everything is fine. Wondering if anyone can offer me some insight on possibly automating this without using mouse movements... Below is an example of a menu option in the javascript: a3 = dmbAPI_addCommand("Reports-Yard Management", "Car Comments"); dmbAPI_setonclick(a3, '/main/location/mtrx/mtrx/yard/carCommentsReport', 'top.imain', false, null); [center][/center] Link to comment Share on other sites More sharing options...
DaleHohm Posted January 21, 2011 Share Posted January 21, 2011 Need to see the interpretted HTML representing what you want to click on... suggest you use DebugBar to get it. 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...
Affe Posted January 25, 2011 Author Share Posted January 25, 2011 Need to see the interpretted HTML representing what you want to click on... suggest you use DebugBar to get it.DaleDid as you suggested, and now I remember why I didn't use the menu to begin with: Neither _IEDocReadHTML nor _IEBodyReadHTML pick up the rendered HTML.Is there any way for me to find those elements? They're div tags, and if I could get that element I could just simulate a click and all of my problems would be solved... [center][/center] Link to comment Share on other sites More sharing options...
DaleHohm Posted January 26, 2011 Share Posted January 26, 2011 I think I said...suggest you use DebugBar to get itDale 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...
Affe Posted January 27, 2011 Author Share Posted January 27, 2011 (edited) Oh, use it in conjunction with the script...? I'm sorry I thought you simply meant "get the html code that you're looking for using DebugBar, then use AutoIt". Because I know the button code is <div>Operations</div>, but I'm lost as to how I'm supposed to have DebugBar tell AutoIt where to click... Edited January 27, 2011 by Affe [center][/center] Link to comment Share on other sites More sharing options...
DaleHohm Posted January 27, 2011 Share Posted January 27, 2011 _IEDocReadHTML and _IEBodyReadHTML and DebugBar ALL pick up the rendered HTML. DebugBar can show you either the rendered or original HTML. Use those tools to get the rendered HTML first, then AutoIT. 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...
Affe Posted January 28, 2011 Author Share Posted January 28, 2011 Thank you very much, after some fiddling around I found I was selecting the wrong <div>. The DebugBar is a great tool to have! [center][/center] 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