difficulty executing a selection in a drop down menu
Forum rules
iMacros EOL - Attention!
The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely,
The Progress Team
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
iMacros EOL - Attention!
The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely,
The Progress Team
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
difficulty executing a selection in a drop down menu
Greetings, I am having difficulty executing a selection in a drop down menu.
When I record the action, it looks like this:
TAG POS=1 TYPE=SELECT ATTR=NAME:cboPlaintiffs CONTENT=%5796899
When I try to automate it with this:
TAG POS=1 TYPE=SELECT ATTR=NAME:cboPlaintiffs CONTENT={{Plaintiff}}
and some excel VBA feeding it the CONTENT= number using this:
iret = iim1.iimSet("Plaintiff", Cells(row, 19).value)
and the value in Cells(row, 19).value is %5796899 formatted as text.
What I observe is that it selects the drop drown control (puts a blue box around it so I can see it’s selected)But the drop-down doesn’t drop. The code just moves on. No errors etc.
I have tried it with, and without the % sign in the cell, as well as variations like
CONTENT=%{{Plaintiff}}
CONTENT=%+{{Plaintiff}}
Working hard on a Friday night so any assistance muchos gracias.
Cheers!
Microsoft Windows Server 2008 R2 Standard
Microsoft Windows NT 6.1.7601 Service Pack 1
64-bit Operating System
CLR version 4.0.30319.42000
Internet Explorer version 11.0.9600.19326
iMacros Browser (x86) version 12.5.503.8802
Google Chrome version 74.0.3729.131
Mozilla Firefox version 66.0.5 (x86 en-US)
Mozilla Firefox version 66.0.5 (x86 en-US)
iMacros File Access is not installed
When I record the action, it looks like this:
TAG POS=1 TYPE=SELECT ATTR=NAME:cboPlaintiffs CONTENT=%5796899
When I try to automate it with this:
TAG POS=1 TYPE=SELECT ATTR=NAME:cboPlaintiffs CONTENT={{Plaintiff}}
and some excel VBA feeding it the CONTENT= number using this:
iret = iim1.iimSet("Plaintiff", Cells(row, 19).value)
and the value in Cells(row, 19).value is %5796899 formatted as text.
What I observe is that it selects the drop drown control (puts a blue box around it so I can see it’s selected)But the drop-down doesn’t drop. The code just moves on. No errors etc.
I have tried it with, and without the % sign in the cell, as well as variations like
CONTENT=%{{Plaintiff}}
CONTENT=%+{{Plaintiff}}
Working hard on a Friday night so any assistance muchos gracias.
Cheers!
Microsoft Windows Server 2008 R2 Standard
Microsoft Windows NT 6.1.7601 Service Pack 1
64-bit Operating System
CLR version 4.0.30319.42000
Internet Explorer version 11.0.9600.19326
iMacros Browser (x86) version 12.5.503.8802
Google Chrome version 74.0.3729.131
Mozilla Firefox version 66.0.5 (x86 en-US)
Mozilla Firefox version 66.0.5 (x86 en-US)
iMacros File Access is not installed
Re: difficulty executing a selection in a drop down menu
Ouf...!, your FCI is nearly "too extended"..., in which Browser(s) then do you run your Script...?Jaffey wrote: ↑Fri May 10, 2019 11:39 pmGreetings, I am having difficulty executing a selection in a drop down menu.
When I record the action, it looks like this:When I try to automate it with this:Code: Select all
TAG POS=1 TYPE=SELECT ATTR=NAME:cboPlaintiffs CONTENT=%5796899
and some excel VBA feeding it the CONTENT= number using this:Code: Select all
TAG POS=1 TYPE=SELECT ATTR=NAME:cboPlaintiffs CONTENT={{Plaintiff}}
and the value in Cells(row, 19).value is %5796899 formatted as text.Code: Select all
iret = iim1.iimSet("Plaintiff", Cells(row, 19).value)
What I observe is that it selects the drop drown control (puts a blue box around it so I can see it’s selected)But the drop-down doesn’t drop. The code just moves on. No errors etc.
I have tried it with, and without the % sign in the cell, as well as variations likeWorking hard on a Friday night so any assistance muchos gracias.Code: Select all
CONTENT=%{{Plaintiff}} CONTENT=%+{{Plaintiff}}
Cheers!
Code: Select all
Microsoft Windows Server 2008 R2 Standard Microsoft Windows NT 6.1.7601 Service Pack 1 64-bit Operating System CLR version 4.0.30319.42000 Internet Explorer version 11.0.9600.19326 iMacros Browser (x86) version 12.5.503.8802 Google Chrome version 74.0.3729.131 Mozilla Firefox version 66.0.5 (x86 en-US) Mozilla Firefox version 66.0.5 (x86 en-US) iMacros File Access is not installed
This one won't be correct:
Code: Select all
TAG POS=1 TYPE=SELECT ATTR=NAME:cboPlaintiffs CONTENT={{Plaintiff}}
Code: Select all
TAG POS=1 TYPE=SELECT ATTR=NAME:cboPlaintiffs CONTENT=%{{Plaintiff}}
Then, pffff-pfff-pfff..., many "Things" could be playing a Role, ah-ah...!
But, OK, "Things" you need to do/try/test, and in the "correct" Order, to "debug" your Case...!
1- You fist need to check that your Script already works in pure '.iim':
Check that the recorded Action works directly:
Code: Select all
TAG POS=1 TYPE=SELECT ATTR=NAME:cboPlaintiffs CONTENT=%5796899
Code: Select all
SET Plaintiff 5796899
TAG POS=1 TYPE=SELECT ATTR=NAME:cboPlaintiffs CONTENT=%{{Plaintiff}}
4- A bit like '3-', try using the 'EVENT' Mode which is a bit "slower" than the 'TAG' Mode and often works more reliably with DDLB's.
5- '.vba' Script not posted, so I can't see if you are calling some separate/existing '.iim' Macro or if you are generating an on-the-fly Macro from your '.vba' Script, but for the later, it could be that the '%' Char is maybe a "Special" Char for iMacros or for '.vba' and needs to be escaped with stg like "CONTENT=\%{{Paintiff}}", I would think...
6- From your '.vba' Script, check the exact Content of your 'Cells(row, 19).value' with an 'alert()' (or the '.vba' Equivalent) with some '_' Delimiter around the Var to make sure it doesn't contain any Space or soft-Return or soft-Tab, and that you really get "_5796899_" as a Result (without the Double Quotes).
7- Like '6-', same Procedure, but with a 'PROMPT' in the '.iim':
Code: Select all
PROMPT Plaintiff:<SP>_{{Plaintiff}}_
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
-
- Posts: 3834
- Joined: Mon May 31, 2010 4:59 pm
Re: difficulty executing a selection in a drop down menu
Just one minor correction to the following:
The problem could be a timing issue as chivracq suggested, or otherwise the TAG command alone is not triggering the field (likely due to some javascript attached to this element), in which case you can try using EVENT or possibly DirectScreen to select the value.
The selection modifier can indeed be a part of the variable value. The following works correctly when hard-coding the variable as well as setting it via the scripting interface:chivracq wrote: ↑Sat May 11, 2019 3:19 pmThis one won't be correct:
... but this one would be:Code: Select all
TAG POS=1 TYPE=SELECT ATTR=NAME:cboPlaintiffs CONTENT={{Plaintiff}}
... as the Select (by Value) '%' Symbol needs to be outside the Var.Code: Select all
TAG POS=1 TYPE=SELECT ATTR=NAME:cboPlaintiffs CONTENT=%{{Plaintiff}}
Code: Select all
URL GOTO=http://demo.imacros.net/Automate/TestForm1
SET food "%Bread and Butter"
TAG POS=1 TYPE=SELECT ATTR=NAME:food CONTENT={{food}}
SET food "$Bread & Butter"
TAG POS=1 TYPE=SELECT ATTR=NAME:food CONTENT={{food}}
Regards,
Tom, iMacros Support
Tom, iMacros Support
Re: difficulty executing a selection in a drop down menu
Hum, not if the Macro runs in FF or CR, according to the Wiki...Tom, Tech Support wrote: ↑Mon May 13, 2019 12:46 pmThe selection modifier can indeed be a part of the variable value. The following works correctly when hard-coding the variable as well as setting it via the scripting interface:
@OP didn't mention in which Browser(s) they run their Macro, then leaving the DDLB Selector outside the Var would sound "safer" to me, I would think..., as it would then work (the same) in all 4 Browsers...
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
-
- Posts: 3834
- Joined: Mon May 31, 2010 4:59 pm
Re: difficulty executing a selection in a drop down menu
Yes, you are correct, I was unaware of this note! I hate when the behavior is not consistent across all versions! I'll have to see if we can get this changed.
Regards,
Tom, iMacros Support
Tom, iMacros Support
-
- Posts: 18
- Joined: Mon Apr 29, 2019 3:50 am
Re: difficulty executing a selection in a drop down menu
Curious why you allow some user to be mod that uses a super old version thats not even supported in almost all of the current browsers most people use. He must be too cheap to buy the current one. Be really nice if u stopped him from insulting users that come here for help also.Tom, Tech Support wrote: ↑Wed May 15, 2019 9:22 amYes, you are correct, I was unaware of this note! I hate when the behavior is not consistent across all versions! I'll have to see if we can get this changed.