Hello everyone,
I’m trying to use the katalon plugin for applitools in order to see how applitools works and if it can works fine with Katalon. Right now, it doesn’t.
Here is the example that I took : GitHub - katalon-studio-samples/katalon-studio-applitools-plugin-sample: A sample project for using Applitools Integration plugin in Katalon Store
And I’m trying to use thids script :
Each time for this part :
WebElement element = driver.findElement(By.xpath(‘//img[contains(@class,'diff2')]’))
//check region by web element
eyes.checkRegion(element, ‘check checkRegion by web element keyword’)
I have the following error :
2020-08-17 16:44:08.512 ERROR c.k.katalon.core.main.TestCaseExecutor -
Test Cases/UseKeywordInScriptingModeSample FAILED.
Reason:
com.applitools.eyes.EyesException: The input web element is not a RemoteWebElement.
at com.applitools.eyes.selenium.wrappers.EyesRemoteWebElement.(EyesRemoteWebElement.java:114)
at com.applitools.eyes.selenium.SeleniumEyes.getTargetElement(SeleniumEyes.java:617)
at com.applitools.eyes.selenium.SeleniumEyes.check(SeleniumEyes.java:743)
at com.applitools.eyes.selenium.SeleniumEyes.check(SeleniumEyes.java:637)
at com.applitools.eyes.selenium.Eyes.check(Eyes.java:403)
at com.applitools.eyes.selenium.Eyes.checkElement(Eyes.java:1039)
at com.applitools.eyes.selenium.Eyes.checkElement(Eyes.java:1027)
at com.applitools.eyes.selenium.Eyes$checkElement$0.call(Unknown Source)
at UseKeywordInScriptingModeSample.run(UseKeywordInScriptingModeSample:45)
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.TestCaseExecutor.runScript(TestCaseExecutor.java:337)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:328)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:307)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:299)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:233)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:105)
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
at TempTestCase1597675432222.run(TempTestCase1597675432222.groovy:25)
How can a WebElement not be a RemoteWebElement
Te rest of it works correctly so my plugin configuration does works.