For example, below is the java code for Selenium automation testing and I have selected the value 9 from a static dropdown. So how do I store the value 9 in a variable?