WebRecorder and IE Select (ComboBox)

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
OrangeAndBlue
Newbie
Posts: 18
Joined: Thu Feb 06, 2014 5:19 pm

WebRecorder and IE Select (ComboBox)

Post by OrangeAndBlue » Thu Feb 06, 2014 5:27 pm

Hi all. I would have put this in the technical section but for whatever reason the forum won't allow it.

I originally was having trouble selecting a row in a combo box. But I accomplished this with:

Code: Select all

IEFormFill>IE_INSTANCE,,,varName,#INDEX#:1,0,ie_res
Which would select the second listed item in box. Why can't this be done by text instead of index?

My challenge now is how to read the selected value in the combo box. I tried doing

Code: Select all

IEExtractTagByName>IE_INSTANCE,,SELECT,varName,value,Result
But 'Result' will then be everything in the combox array, not just the active selection.

Thank you!

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Feb 10, 2014 3:28 pm

Without seeing the source and trying it can't answer first question.

Regarding the second question you can tell it to get all the HTML and then parse with e.g. RegEx to see which the selected item is.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts