IEFormFill Change select dropdown

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
andyrav
Newbie
Posts: 3
Joined: Mon Aug 17, 2015 3:30 pm

IEFormFill Change select dropdown

Post by andyrav » Mon Aug 17, 2015 3:37 pm

Hi
Iam trying to change the value of a drop down select with the following without success.
IEFormFill>IE[0],,,SELECT,cbPermissionsPartitionID,London Office,res

where am i going wrong? many thanks

<select name="cbPermissionsPartitionID" class="cInputCbInline" id="idPermissionsPartitionID" style="width: 32em;" onchange="SettingsChangedPartition(event)">
<option value="73e4b32acf5b3b94:-6b17d22d:117408ebd2b:-7c1a" selected="">[Entire Telephony Server (All Partitions)]</option>
<option value="73049cf11816b1b1:2600fae5:149a4ace75a:326">[Common Devices Partition]</option>
<option value="73049cf11816b1b1:2600fae5:149a4ace75a:431">London Office</option>
<option value="e7995bc124c3461b:57317ee4:14c2ab047b5:-2f1c">Reading Training</option>

</select>

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

Re: IEFormFill Change select dropdown

Post by Marcus Tettmar » Mon Aug 17, 2015 9:14 pm

Hi,

That should work but I notice this Select has a javascript event handler and perhaps that is preventing IEFormFill from working or is not triggering. It may do some background processing which therefore isn't happening just by setting the value. But truth is it's hard to say why it isn't working without trying it and having access to the page to debug.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

andyrav
Newbie
Posts: 3
Joined: Mon Aug 17, 2015 3:30 pm

Re: IEFormFill Change select dropdown

Post by andyrav » Tue Aug 18, 2015 9:58 am

Do you have any idea i dont mind testing as i am not sure if i can give you access to the webpage

many thanks

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

Re: IEFormFill Change select dropdown

Post by Marcus Tettmar » Wed Aug 19, 2015 2:51 pm

As I say the only idea I have is that the javascript is handling a "real" click and simply setting the value programmatically is not enough. Looks like you are addressing the element properly so realistically if it aint working, it aint gonna work that way.

What you could try is focusing it and then sending some press down's to it.

Something like:

Code: Select all

SetFocus>Internet Explorer*
IETagEventByAttrib>partofurl.com/page,SELECT,CLASS=cInputCbInline,focus,
Press Down * 2
This may work because it simulates keystrokes at the human level rather than just trying to set the value at the HTML level. If the javascript requires "real" keystrokes then this should work.
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