Click on Text Present in Drop Down

I need Katalon to click on text from a drop down and its position may change randomly based on test conditions. With the code below I can open the drop down and verify the text is present but I am having errors when asking it to “Click” on text that is present.

Error below is thrown:

09-10-2018 02:47:27 PM - [ERROR] - Test Cases/Select change set FAILED because (of) groovy.lang.MissingMethodException: No signature of method: static com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.selectOptionByValue() is applicable for argument types: (null, java.lang.String) values: [null, SST CLMS 1.11.3 Automation 14-47 09-10-2018]

Possible solutions: selectOptionByValue(com.kms.katalon.core.testobject.TestObject, java.lang.String, boolean), selectOptionByValue(com.kms.katalon.core.testobject.TestObject, java.lang.String, boolean, com.kms.katalon.core.model.FailureHandling), deselectOptionByValue(com.kms.katalon.core.testobject.TestObject, java.lang.String, boolean), deselectOptionByValue(com.kms.katalon.core.testobject.TestObject, java.lang.String, boolean, com.kms.katalon.core.model.FailureHandling).

Below is my code. What am I missing?

import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint

import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase

import static com.kms.katalon.core.testdata.TestDataFactory.findTestData

import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject

import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint

import com.kms.katalon.core.checkpoint.CheckpointFactory as CheckpointFactory

import as MobileBuiltInKeywords

import as Mobile

import com.kms.katalon.core.model.FailureHandling as FailureHandling

import com.kms.katalon.core.testcase.TestCase as TestCase

import com.kms.katalon.core.testcase.TestCaseFactory as TestCaseFactory

import com.kms.katalon.core.testdata.TestData as TestData

import com.kms.katalon.core.testdata.TestDataFactory as TestDataFactory

import com.kms.katalon.core.testobject.ObjectRepository as ObjectRepository

import com.kms.katalon.core.testobject.TestObject as TestObject

import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WSBuiltInKeywords

import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS

import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUiBuiltInKeywords

import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI

import org.junit.After as After

import org.openqa.selenium.Keys as Keys

import internal.GlobalVariable as GlobalVariable

import java.text.SimpleDateFormat as SimpleDateFormat

/* Trimming code here for brevity */

Date today = new Date()

String todaysDate = today.format(‘HH-mm MM-dd-YYYY’)

String ChangeSetName = (((‘Teamname ’ + SoftwareVersion) + ’ Automation’) + ’ ') + todaysDate

/* Trimming code here for brevity */


WebUI.sendKeys(findTestObject(null), Keys.chord(Keys.TAB, Keys.DOWN))


WebUI.verifyTextPresent(ChangeSetName, true)


WebUI.selectOptionByValue(findTestObject(‘null’), ChangeSetName)

WebUI.verifyOptionSelectedByValue(findTestObject(‘null’), ChangeSetName, 15)



findTestObject takes a string whose value is the path to a TestObject (usually stored in the Object Repository). If you pass null to it, it will not work.

Later, you use findTestObject(‘null’), which is a string but I doubt you have an OR reference whose path is called literally ‘null’.

The error is saying you cannot pass null to selectOptionByValue:

No signature of method selectOptionByValue()
is applicable for argument types: (null,…)

It goes on to suggest you pass a TestObject:

Possible solutions: selectOptionByValue(TestObject, …)