Sign in to follow this  
Followers 0
Affe

IE and dmb_API menu

7 posts in this topic

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



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

Share this post


Link to post
Share on other sites

Need to see the interpretted HTML representing what you want to click on... suggest you use DebugBar to get it.

Dale

Did 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

I think I said...

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

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by Affe

[center][/center]

Share this post


Link to post
Share on other sites

_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

Share this post


Link to post
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0