No signature of method

hello,
I have a problem, it worked before, now this test gives me this error:

Reason:
groovy.lang.MissingMethodException: No signature of method: static com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.click() is applicable for argument types: (com.kms.katalon.core.testobject.TestObject, java.lang.Integer) values
Possible solutions: click(com.kms.katalon.core.testobject.TestObject), click(com.kms.katalon.core.testobject.TestObject, com.kms.katalon.core.model.FailureHandling), check(com.kms.katalon.core.testobject.TestObject), check(com.kms.katalon.core.testobject.TestObject, com.kms.katalon.core.model.FailureHandling), back(), wait()

Hi, please post your test script along with all the console log.

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.annotation.Keyword
import com.kms.katalon.core.checkpoint.Checkpoint
import com.kms.katalon.core.checkpoint.CheckpointFactory
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords
import com.kms.katalon.core.model.FailureHandling
import com.kms.katalon.core.testcase.TestCase
import com.kms.katalon.core.testcase.TestCaseFactory
import com.kms.katalon.core.testdata.TestData
import com.kms.katalon.core.testdata.TestDataFactory
import com.kms.katalon.core.testobject.ObjectRepository
import com.kms.katalon.core.testobject.TestObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords

import internal.GlobalVariable

import MobileBuiltInKeywords as Mobile
import WSBuiltInKeywords as WS
import WebUiBuiltInKeywords as WebUI

import org.openqa.selenium.WebElement
import org.openqa.selenium.WebDriver
import org.openqa.selenium.By

import com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory
import com.kms.katalon.core.webui.driver.DriverFactory

import com.kms.katalon.core.testobject.RequestObject
import com.kms.katalon.core.testobject.ResponseObject
import com.kms.katalon.core.testobject.ConditionType
import com.kms.katalon.core.testobject.TestObjectProperty

import com.kms.katalon.core.mobile.helper.MobileElementCommonHelper
import com.kms.katalon.core.util.KeywordUtil

import com.kms.katalon.core.webui.exception.WebElementNotFoundException

import cucumber.api.java.en.And
import cucumber.api.java.en.Given
import cucumber.api.java.en.Then
import cucumber.api.java.en.When


class SS_Elimina_autista {
	/**
	 * The step definitions below match with Katalon sample Gherkin steps
	 */
	@Given("Eseguo il login con (.*) e (.*)")
	def Eseguo_login_con_value(String name, String password) {
		WebUI.openBrowser("https://website.com")
		//WebUI.waitForPageLoad(30)
		WebUI.setText(findTestObject('Object Repository/Page_C/input_Ho dimenticato la password_username'), name    )
		WebUI.setText(findTestObject('Object Repository/Page_C/input_Ho dimenticato la password_password'), password    )
		WebUI.click(findTestObject('Object Repository/Page_C/button_Entra'))
	}

	@When("Accedo al dettaglio dell'autista")
	def Accedo_al_dettaglio_dell_autista() {
		WebUI.click(findTestObject('SS - invite driver/click_driver'))
		WebUI.setText(findTestObject('Object Repository/SS - Delete Driver/search'), '2asd')
		WebUI.click(findTestObject('Object Repository/SS - Delete Driver/delete'))
		
	}

	@Then("Elimino l'autista")
	def Elimino_l_autista() {
		WebUI.click(findTestObject('SS - Delete Driver/confirm'))
		WebUI.click(findTestObject('SS - Delete Driver/ok'))
		WebUI.closeBrowser()
	}
}
10-30-2019 03:58:40 PM Accedo al dettaglio dell'autista

Elapsed time: 5,535s

SS_Elimina_autista.Accedo_al_dettaglio_dell_autista:65

Accedo al dettaglio dell'autista FAILED.

Reason:

groovy.lang.MissingMethodException: No signature of method: static com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.setText() is applicable for argument types: (com.kms.katalon.core.testobject.TestObject, java.lang.String, java.lang.Integer) values: [TestObject - 'Object Repository/SS - Delete Driver/search', ...]

Possible solutions: setText(com.kms.katalon.core.testobject.TestObject, java.lang.String), setText(com.kms.katalon.core.testobject.TestObject, java.lang.String, com.kms.katalon.core.model.FailureHandling), getText(com.kms.katalon.core.testobject.TestObject), getText(com.kms.katalon.core.testobject.TestObject, com.kms.katalon.core.model.FailureHandling)

at SS_Elimina_autista.Accedo_al_dettaglio_dell_autista(SS_Elimina_autista.groovy:65)

at ✽.Accedo al dettaglio dell'autista(/Users/f/Katalon Studio/c-test-web/Include/features/01-Self Sender/12-SS-Elimina Autista.feature:7)

Thjs line here causes the problem, I think:

Please try to wtrap 2asd with a triple quotes and try again. Did you upgrade Katalon Studio ? What version are you using ?

1 Like

I updated katalon (7.0.5) today and, in fact, many tests don’t work today

now the error is this, but the xpath is correct

10-30-2019 04:17:29 PM Accedo al dettaglio dell'autista

Elapsed time: 13,729s

SS_Elimina_autista.Accedo_al_dettaglio_dell_autista:66

Accedo al dettaglio dell'autista FAILED.

Reason:

com.kms.katalon.core.exception.StepFailedException: Unable to click on object 'Object Repository/SS - Delete Driver/delete'

at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:64)

at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:26)

at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.click(ClickKeyword.groovy:79)

at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.execute(ClickKeyword.groovy:42)

at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:60)

at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.click(WebUiBuiltInKeywords.groovy:616)

at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$click$1.call(Unknown Source)

at SS_Elimina_autista.Accedo_al_dettaglio_dell_autista(SS_Elimina_autista.groovy:66)

at ✽.Accedo al dettaglio dell'autista(/Users/f/Katalon Studio/c-test-web/Include/features/01-Self Sender/12-SS-Elimina Autista.feature:7)

Caused by: org.openqa.selenium.StaleElementReferenceException: stale element reference: element is not attached to the page document

(Session info: chrome=78.0.3904.70)

For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/stale_element_reference.html

Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'

System info: host: 'MacBook-Air-di-F.local', ip: 'fe80:0:0:0:1844:6c75:57b6:e441%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.1', java.version: '1.8.0_181'

Driver info: com.kms.katalon.selenium.driver.CChromeDriver

Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 78.0.3904.70, chrome: {chromedriverVersion: 77.0.3865.40 (f484704e052e0..., userDataDir: /var/folders/dy/k6z0kd891hx...}, goog:chromeOptions: {debuggerAddress: localhost:62978}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: MAC, platformName: MAC, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify}

Session ID: 99c0070d0877d6d4ec9e8878de7950e6

at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)

at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)

at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)

at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)

at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)

at com.kms.katalon.selenium.driver.CChromeDriver.execute(CChromeDriver.java:19)

at org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:489)

at org.openqa.selenium.support.events.EventFiringWebDriver.lambda$new$1(EventFiringWebDriver.java:105)

at com.sun.proxy.$Proxy15.executeScript(Unknown Source)

at org.openqa.selenium.support.events.EventFiringWebDriver.executeScript(EventFiringWebDriver.java:229)

at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword$_click_closure1$_closure4.doCall(ClickKeyword.groovy:69)

at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword$_click_closure1$_closure4.doCall(ClickKeyword.groovy)

at com.sun.proxy.$Proxy17.get(Unknown Source)

at com.kms.katalon.core.trymonad.Try.ofFailable(Try.java:31)

at com.kms.katalon.core.trymonad.Failure.orElseTry(Try.java:332)

at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword$_click_closure1.doCall(ClickKeyword.groovy:58)

at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword$_click_closure1.call(ClickKeyword.groovy)

at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:20)

at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.click(ClickKeyword.groovy:79)

at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.execute(ClickKeyword.groovy:42)

at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:60)

at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.click(WebUiBuiltInKeywords.groovy:616)

at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$click$1.call(Unknown Source)

at SS_Elimina_autista.Accedo_al_dettaglio_dell_autista(SS_Elimina_autista.groovy:66)

at cucumber.runtime.Utils$1.call(Utils.java:26)

at cucumber.runtime.Timeout.timeout(Timeout.java:16)

at cucumber.runtime.Utils.invoke(Utils.java:20)

at cucumber.runtime.java.JavaStepDefinition.execute(JavaStepDefinition.java:48)

at cucumber.runtime.PickleStepDefinitionMatch.runStep(PickleStepDefinitionMatch.java:50)

at cucumber.runner.TestStep.executeStep(TestStep.java:55)

at cucumber.runner.TestStep.run(TestStep.java:42)

at cucumber.runner.PickleStepTestStep.run(PickleStepTestStep.java:53)

at cucumber.runner.TestCase.run(TestCase.java:47)

at cucumber.runner.Runner.runPickle(Runner.java:44)

at cucumber.runtime.Runtime.runFeature(Runtime.java:120)

at cucumber.runtime.Runtime.run(Runtime.java:106)

at cucumber.api.cli.Main.run(Main.java:35)

at cucumber.api.cli.Main$run.call(Unknown Source)

at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$_runFeatureFile_closure1.doCall(CucumberBuiltinKeywords.groovy:76)

at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$_runFeatureFile_closure1.doCall(CucumberBuiltinKeywords.groovy)

at com.kms.katalon.core.keyword.internal.KeywordMain.runKeyword(KeywordMain.groovy:68)

at com.kms.katalon.core.keyword.internal.KeywordMain$runKeyword.call(Unknown Source)

at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords.runFeatureFile(CucumberBuiltinKeywords.groovy:46)

at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$runFeatureFile$0.callStatic(Unknown Source)

at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords.runFeatureFile(CucumberBuiltinKeywords.groovy:169)

at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$runFeatureFile.call(Unknown Source)

at WSVerification1572448622965.run(WSVerification1572448622965:2)

at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)

at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)

at com.kms.katalon.core.main.WSVerificationExecutor.runScript(WSVerificationExecutor.java:146)

at com.kms.katalon.core.main.WSVerificationExecutor.doExecute(WSVerificationExecutor.java:140)

at com.kms.katalon.core.main.WSVerificationExecutor.processExecutionPhase(WSVerificationExecutor.java:123)

at com.kms.katalon.core.main.WSVerificationExecutor.accessMainPhase(WSVerificationExecutor.java:115)

at com.kms.katalon.core.main.WSVerificationExecutor.execute(WSVerificationExecutor.java:103)

at com.kms.katalon.core.main.TestCaseMain.runFeatureFile(TestCaseMain.java:144)

at com.kms.katalon.core.main.TestCaseMain$runFeatureFile$0.call(Unknown Source)

at TempTempCase1572448619836.run(TempTempCase1572448619836.groovy:23)

Hi @fap

Before we get to that error. Did you changed the triple quotes and the test ran successfully ? Can you try to change it back to single quotes to again to see if the old problem still persists ?

1 Like

Hi Thanh,
I changed the quotes and, using triples, the old error does not occur, but the last one appears. I put back the single quotes and the previous error does not show up, but it always appears the last one…

Solved with waitElementPresent, thank you very much

1 Like