I have a Selenium test case that enters dates into a date selector made up of three pulldowns (year, month, and day).
select validity_Y label=2008
select validity_M label=08
select validity_D label=08
This part gets repeated a lot throughout the test case. I'd like to reduce it by defining my custom action "selectValidity", so that I can have less redundancy, something like
selectValidity 2008,08,08
What is the best (easiest, cleanest) way to add macros or subroutines to a test case?