Jump to content
Sign in to follow this  
m@rt!n

Internet Explorer automation

Recommended Posts

m@rt!n

Hello all I want to set the the pulldown menus on the following url "http://verkopen.marktplaats.nl/select_category.php"

I dont' want to use mousemove and the pull down menus are located in a frame named "body

I have studied the _ie librarie examples multiple times but can not find a good solution.

Is there anybody who is experienced enough to help me out with this problem?

Thanks Martin

Share this post


Link to post
Share on other sites
DaleHohm

_IEFormElementOptionselect


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
m@rt!n

thanks for the repley:

I have created this little scripts with the help of the helpfile but it seems not working very well

#include <IE.au3>

$oIE = _IECreate ("http://verkopen.marktplaats.nl/select_category.php")

$oForm = _IEFormGetObjByName ($oIE, "postform")

$oSelect = _IEFormElementGetObjByName ($oForm, "l1")

_IEFormElementOptionselect ($oSelect, "565", 1, "byValue")

What is wrong? (probely my skills) :whistle:

Share this post


Link to post
Share on other sites
DaleHohm

thanks for the repley:

I have created this little scripts with the help of the helpfile but it seems not working very well

#include <IE.au3>

$oIE = _IECreate ("http://verkopen.marktplaats.nl/select_category.php")

$oForm = _IEFormGetObjByName ($oIE, "postform")

$oSelect = _IEFormElementGetObjByName ($oForm, "l1")

_IEFormElementOptionselect ($oSelect, "565", 1, "byValue")

What is wrong? (probely my skills) :whistle:

This site will give you a couple of problems before you ever get to the OPTION drop-downs.

First, the site uses Frames (use View Source to see). So the following mod to your code would be required once you see that the frame you want is named "body":

#include <IE.au3>
$oIE = _IECreate ("http://verkopen.marktplaats.nl/select_category.php")
$oFrame = _IEFrameGetObjByName($oIE, "body")
$oForm = _IEFormGetObjByName ($oFrame, "postform")
$oSelect = _IEFormElementGetObjByName ($oForm, "l1")
_IEFormElementOptionselect ($oSelect, "565", 1, "byValue")oÝ÷ ÙIߢ»n«^+ayDKºÇz®¢Öèw*®¢×hzÉè¶f­razÚ)ëÞÚºg§µ©Ýzw(º{^®Æ¬yË«Ü«zËkËb¢{ajÚkz÷§¶Ê®¢×+¢Ë,׬r¸©¶)àªê-b·öYgyçm¢^Ø^Qè~Ø^²øuúÚè§jÇ©z¶­{§v"Ýz»hëm¢+pØlr¸©µ«­¢+ØÀÌØí½%ô}%
ÉÑ ÅÕ½Ðí¡ÑÑÀè¼½ÙÉ­½Á¸¹µÉ­ÑÁ±Ñ̹¹°½Í±Ñ}ѽÉä¹Á¡ÀÅÕ½Ðì¤

Then you can start working with the form...

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.