Aleksander Kovač
Katalon Apprentice
08/02/2018

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));
Upvote
Quote

Comments

  • Russ Thomas
    Katalon Evangelist
    08/02/2018

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

    Is that a copy/paste?  I ask because executeJavaScript is spelt wrong.



    Upvote
    Quote
  • Aleksander Kovač
    Katalon Apprentice
    08/06/2018
    Hi,

    I rechecked - it is not copy paste - the issue is in Katalon. Version: 5.5.0
    Upvote
    Quote
  • Aleksander Kovač
    Katalon Apprentice
    08/06/2018
    Hi,

    I rechecked - it is not copy paste - the issue is in Katalon. Version: 5.5.0
    Upvote
    Quote
  • Aleksander Kovač
    Katalon Apprentice
    08/06/2018
    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'
    Upvote
    Quote
  • Russ Thomas
    Katalon Evangelist
    08/06/2018
    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.
    Upvote
    Quote
  • Aleksander Kovač
    Katalon Apprentice
    08/10/2018
    Platform:
    Katalon Version: 5.5.0
    Windows 10

    Nothing else is needed.
    Upvote
    Quote
  • Aleksander Kovač
    Katalon Apprentice
    08/10/2018
    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
    Upvote
    Quote
  • Róbert Morovský
    Katalon Apprentice
    5 hours ago
    hi katalon team, any update here?
    Upvote
    Quote
  • Vinh Nguyen
    Katalon Moderator
    2 hours ago
    edited 10:20AM
    Does it happen for other keywords? Or is it just only this keyword?
    Upvote
    Quote
Sign In or Register to comment.