Validate all the variable in the form

sllc79

  • Joined: Aug 18, 2011
  • Posts: 2

Thu 8/18/2011 - 4:00

 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

ScreenHunter_01 Aug. 18 11.07.gif

#1

Samantha

  • Joined: Apr 23, 2010
  • Posts: 2328

Thu 8/18/2011 - 13:09

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

#2

sllc79

  • Joined: Aug 18, 2011
  • Posts: 2

Fri 8/19/2011 - 0:43

 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

#3

Samantha

  • Joined: Apr 23, 2010
  • Posts: 2328

Fri 8/19/2011 - 18:00

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

#4
Not a member yet? Register

Copyright 2013 - Softomotive Ltd