Please explain the code.
I want ot understand how to use VerifyOptionSelectByValue for the Zone2 under Zonal Name in the image
The statement is actually, WebUI.verifyOptionSelectedByValue(), or WebUI.verifyOptionSelectedByLabel().
Are you familiar about the difference between “ByValue” and “ByLabel”? Using “ByValue”, you have to look at the HTML of the page to get the value attribute for the option. So, right click on the “Zone2” and select “Inspect” from the pop-up (you may have to do this twice to get the HTML code to move to the exact spot). Then, review what the value attribute of the “Zone2” option is.
Using “ByLabel”, you can see it in your image.
Here is some more information from another similar question: