Select dropdown value by read data from excel

@ayesha.khanam You are using selectOptionByValue method on a span element (span_Tanzania). That won’t work. The selectOptionByValue and selectOptionByLabel methods are for a select tag.

Maybe you could use:

WebUI.verifyMatch(WebUI.getText(findTestObject(‘Object Repository/Web/span_Tanzania’)), findTestData(‘data’).getValue(‘SelectCountry’,1), false, FailureHandling.OPTIONAL)

Also, you are using true for the boolean in your statement. If there is no Regular Expression in your parameters, you should set the boolean to false.