radio buttons without form

Recommended Posts

bob57 0

bob57 0

I've got a page I need to interact with that has input elements not within a form The text fields I can manipulate using an object identifier, but I can't see how to get _IEFormElementRadioSelect working without a form reference/handle. I also need to do some select lists that are outside of the form, but I've not looked at those yet. I've build myself a tiny test page to play with.

Share this post

Link to post

Share on other sites

DaleHohm 58

DaleHohm 58

If you are lucky enough to have ID's on all of those elements, them that is a very good solution. Note that _IEFormElementSetValue will do what you want for an INPUT TYPE=TEXT element, but for other elements you will most likely want to use _IEAction($oElement, "click") -- this is because you do not want to change the VALUE of those elements, but rather make certain the you select the one(s) with the value that you want.

SELECT OPTION (drop-down, select and multi-select controls) are more complicated. The SELECT element in turn has a .OPTION collection under it. The SELECT has a NAME and the OPTIONs have both .text and .value properties. This all makes these things very confusing. Noteas as well that SELECT OPTION, RADIO and CHECKBOX elements all have a .checked property (TRUE or FALSE) that reveal or control whether they are selected or not.

I have not worked out a generalized way to do all of this in IE.au3 when the elements are not in a form, but unfortunately, it is becomming more common practice.

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=YDoesn'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