| || |
removing hardcoded values
Currently my code is hardcoded,for example for selection of a value from a combo box, it selects the value at index 1 , How do i change the hard coded value to pick up any other value from the dropdown, kindly get back on this
Re: removing hardcoded values
You can use any external files or some silk variables to avoid hard coding. While considering external files, you can consider text files, XL sheet, XML format files and Database. Simplest is text files. You can get code to retrive data from Excel sheet from this forum (Do a search..).
If you want to do very simple, you can define a variable (in your case Integer variable) on top of the script and give the value. Substitute that variable in Select methods.