Get element property. Error: No signature of method: static com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords.sendRequest()

Hello,

Please help me to understand my fault:

I need to work with Element Property Value.

  1. import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
  2. Send get request to object
  3. get the property value with WS.getElementPropertyValue

I receive an error

groovy.lang.MissingMethodException: No signature of method: static com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords.sendRequest() is applicable for argument types:

code:

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



def response = WS.sendRequest('Smoke Test Objects/Fleet/ConstrPr_High Speed2-Phase I/Map on a machine level/Overview/Set Custom Limits/Max') 

propertyValue = WS.getElementPropertyValue(response, 'value')

println(propertyValue)

Thank you in advance for your answers!

You should check the javadoc of WSBuiltInKeywords#sendRequest, and check the type of the argument

https://api-docs.katalon.com/com/kms/katalon/core/webservice/keyword/WSBuiltInKeywords.html#sendRequest(com.kms.katalon.core.testobject.RequestObject)

Your code is wrong:

def response = WS.sendRequest('Smoke Test Objects/Fleet/ConstrPr_High Speed2-Phase I/Map on a machine level/Overview/Set Custom Limits/Max') 
                      //      ^^^ this is a java.lang.String, not a RequestObject