Validate all the variable in the form
sllc79
![]()
- Joined: Aug 18, 2011
- Posts: 2
Hi there,
I am not sure how to start to automate steps to validate all the variable in the form.
I have a form like attached. Need to select each option and capture the value.
Please advise
Thanks
sharon lim
Samantha
![]()
- Joined: Apr 23, 2010
- Posts: 2328
Hi Sharon, Welcome to our Forum! Would you please share with us the link from which you grabbed that dropdown list so that we can work on it and suggest the best possible workaround to implement grabbing those values? :) Samantha
sllc79
![]()
- Joined: Aug 18, 2011
- Posts: 2
Hi Samantha,
It is an application form.I dont know how to start to grab that dropdown list and run a loop on every value in the drop down list.
Could you give me some example?
THanks
Sharon Lim
Samantha
![]()
- Joined: Apr 23, 2010
- Posts: 2328
You could try using keystrokes --> Focus on the field using either a mouse click or keystrokes and then send a {Home} key to get to the top of the list. Having done so, you can then send through the following keys in a loop while the %PreviousOption% is different to the %CurrentOption% (i'll explain more of these variables further on. So once you're in the loop, what you do is send the keys: {Control}({C}){Delay 500}{Down} Then Get Clipboard and add the item to a list. the same item you should save it in the %PreviousOption% variable to compare it and make sure you've got the whole list and stop looping when you get to the end of the list. so your job should look like this: Create List %ListOptions% Move mouse (to focus on dropdown list) Set variable %PreviousOption% = %""% Set variable %CurrentOption% = Options Loop while %PreviousOption% <> %CurrentOption% Set variable %PreviousOption% = %CurrentOption% Send Keys: {Control}({C}){Delay 500}{Down} Get ClipboadText --> %CurrentOption% Add item to List %CurrentOption% to %ListOptions% End Loop This way you'll have all options in the %ListOptions% variable. Hope this is easy to understand, i'm not quite sure it will work for your dropdown list, but it does work for most :) Samantha
Login to post a reply Not a member yet? Register