Keyword 'executeJavascript' does not exist on platform 'web'


#1

08-02-2018 03:56:57 PM - [ERROR] - Keyword ‘executeJavascript’ does not exist on platform ‘web’

com.kms.katalon.core.exception.StepFailedException: Keyword ‘executeJavascript’ does not exist on platform ‘web’

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

at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.executeJavaScript(WebUiBuiltInKeywords.groovy:3771)

at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$executeJavaScript$0.call(Unknown Source)

FAILING CODE:
WebUI.executeJavaScript(“window.open(arguments[0]);”, Arrays.asList(fullyQualifiedURL),FailureHandling.STOP_ON_FAILURE);

WORKING CODE:
WebUI.executeJavaScript(“window.open(arguments[0]);”, Arrays.asList(fullyQualifiedURL));


#2

08-02-2018 03:56:57 PM - [ERROR] - Keyword ‘executeJavascript’ does not exist on platform ‘web’

Is that a copy/paste? I ask because executeJava**S**cript is spelt wrong.


#3

Hi,

I rechecked - it is not copy paste - the issue is in Katalon. Version: 5.5.0


#4

Hi,

I rechecked - it is not copy paste - the issue is in Katalon. Version: 5.5.0


#5

So this exact line:
WebUI.executeJavaScript(“window.open(arguments[0]);”, Arrays.asList(‘https://www.google.com/’),FailureHandling.CONTINUE_ON_FAILURE);

Will produce:

08-06-2018 01:01:50 PM - [ERROR] - Keyword ‘executeJavascript’ does not exist on platform ‘web’

com.kms.katalon.core.exception.StepFailedException: Keyword ‘executeJavascript’ does not exist on platform ‘web’


#6

To claim a Katalon bug, you should now provide all the details of the platform you are using. At the very least, the error report is spelling the name of the method incorrectly.


#7

Platform:
Katalon Version: 5.5.0
Windows 10

Nothing else is needed.


#8

A summary since it is not possible to edit first post:

Keyword ‘executeJavascript’ does not exist on platform ‘web’

08-02-2018 03:56:57 PM - [ERROR] - Keyword ‘executeJavascript’ does not exist on platform ‘web’

com.kms.katalon.core.exception.StepFailedException: Keyword ‘executeJavascript’ does not exist on platform ‘web’

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

at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.executeJavaScript(WebUiBuiltInKeywords.groovy:3771)

at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$executeJavaScript$0.call(Unknown Source)

FAILING CODE:
WebUI.executeJavaScript(“window.open(arguments[0]);”, Arrays.asList(fullyQualifiedURL),FailureHandling.STOP_ON_FAILURE);

WORKING CODE:
WebUI.executeJavaScript(“window.open(arguments[0]);”, Arrays.asList(fullyQualifiedURL));

Note this is not a user typo: Keyword ‘executeJavascript’ does not exist on platform ‘web’

So this exact line:
WebUI.executeJavaScript(“window.open(arguments[0]);”, Arrays.asList('https://www.google.com/’),FailureHandling.CONTINUE_ON_FAILURE);

Will produce:

08-06-2018 01:01:50 PM - [ERROR] - Keyword ‘executeJavascript’ does not exist on platform ‘web’

com.kms.katalon.core.exception.StepFailedException: Keyword ‘executeJavascript’ does not exist on platform ‘web’

Katalon Version: 5.5.0
Windows 10


#9

hi katalon team, any update here?


#10

Does it happen for other keywords? Or is it just only this keyword?


#11

It happens also for **‘openBrowser’ **
Please see this: https://forum.katalon.com/discussion/6307/cannot-run-test-keyword-does-not-exist-on-platform