Sign in to follow this  
Followers 0
jezsmith

Internet Explorer COM application advice

2 posts in this topic

I have a rather complex task but I thought I would get some advice since I have tried AHK and not been able to make this work at all.

This is my problem, scenario if you like, I will explain it best I can to get an idea for how to solve this.

I have 2 CSV files basically.

One with our sites 'categories' and one with the 'products'.

The categories one must be uploaded and must be successfull to then in turn upload the products file, or the system wont work respectively.

The script I as wanting to make would open a Internet Explorer application.

Navigate to 'http://x' site where x is the address/URL of the site

Login,

Then wait until the load is successfull,

Navigate to the upload site (http://x/uploads.php for example),

You are then presented with some form elements as follows:

<b>CSV delimiter:</b><br /><select name="delimiter">

The value of 'delimiter' this must be:

<option value=";">Semicolon</option> must be selected.

There are then 3 radio buttons the value of this must be selected as:

<input type="radio" id="source_server" name="source"> - Where 'source_server' must be selected.

And finally a text box with a value of where the csv file is located on the server:

<input type="radio" id="source_url" name="url" /> This value will be of the categories first for that process.

Then when the that process is in progress, the program will loop through (going off AHK's principles here), to workout when the following tag exists with the following value:

<div id="status_message">Data has been imported successfully.</div>

Then go through to process the same form again but for the products, on the same page.

Is this possible if so can i get some help in doing this?

Ragging my brain to get this working if AutoIt cant do it then I wont be able to get this working should though.

Share this post


Link to post
Share on other sites



The _IE functions eat your requirements for breakfast.

Please look in the helpfile at the examples for the _IEFormElementSetValue and _IEFormElement*Select functions.

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

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