Page 1 of 1
Dropdown blank for non existent or non matching element
Posted: Tue Jan 04, 2011 12:22 pm
by giorgio79
Hello,
A blank is selected in single select dropdown list if there is no matching TAG.
I believe it would be better if it would give en ERROR.
Would be a welcome feature.
Re: Dropdown blank for non existent or non matching element
Posted: Wed Jan 05, 2011 1:00 pm
by Tom, Tech Support
Hi giorgio79,
I believe the default behavior is to generate an error if the selected dropdown element is not found. Would you please provide an example macro so that we can quickly re-create and troubleshoot the specific issue you are experiencing?
Re: Dropdown blank for non existent or non matching element
Posted: Wed Jan 05, 2011 1:32 pm
by giorgio79
Thanks Tom, sure here is one
Code: Select all
VERSION BUILD=7031111 RECORDER=FX
TAB T=1
URL GOTO=http://www.fiberdownload.com/submit-software.htm
TAG POS=1 TYPE=SELECT FORM=NAME:frm ATTR=NAME:name_categ CONTENT=$*hehehe*
Re: Dropdown blank for non existent or non matching element
Posted: Wed Jan 05, 2011 3:30 pm
by Tom, Tech Support
Hi giorgio,
iMacros generates the following error when I run your macro:
RuntimeError: Selected entry not available: '$*hehehe*' [Box has 228 entries], line: 4
Is this not what you are getting?
Re: Dropdown blank for non existent or non matching element
Posted: Wed Jan 05, 2011 3:44 pm
by giorgio79
You are right
Thanks, and sorry, it seems I should have slept more last night.
Re: Dropdown blank for non existent or non matching element
Posted: Wed Jan 05, 2011 3:55 pm
by Tom, Tech Support
LOL! No problem.
Re: Dropdown blank for non existent or non matching element
Posted: Sat Jan 08, 2011 8:16 pm
by giorgio79
Tom just one more thing. iMacros does generate an error, but it also makes teh dropdown blank. Anyway to avoid that?
Re: Dropdown blank for non existent or non matching element
Posted: Sat May 07, 2011 3:04 am
by giorgio79
Would anyone agree, that the desired behavior would be to not set the dropdown to blank on non existent value?
I would just prefer it to be left alone
Re: Dropdown blank for non existent or non matching element
Posted: Sat May 07, 2011 9:36 am
by Tom, Tech Support
giorgio79 wrote:Would anyone agree, that the desired behavior would be to not set the dropdown to blank on non existent value?
I would just prefer it to be left alone
I agree! This is how other versions of iMacros behave (by not clearing the currently selected entry). I have logged this for further investigation by the development team.