Affe 1 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] Share this post Link to post Share on other sites
DaleHohm 65 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, curlMSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object modelAutomate input type=file (Related)Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better?IE.au3 issues with Vista - WorkaroundsSciTe 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 Share this post Link to post Share on other sites
Affe 1 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] Share this post Link to post Share on other sites
DaleHohm 65 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, curlMSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object modelAutomate input type=file (Related)Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better?IE.au3 issues with Vista - WorkaroundsSciTe 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 Share this post Link to post Share on other sites
Affe 1 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] Share this post Link to post Share on other sites
DaleHohm 65 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, curlMSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object modelAutomate input type=file (Related)Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better?IE.au3 issues with Vista - WorkaroundsSciTe 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 Share this post Link to post Share on other sites
Affe 1 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] Share this post Link to post Share on other sites