Custom Keywords with Multiple Arguments?

Good morning.

I have created a custom keyword that takes two test objects as arguments. (The code is below.) My problem is when I try to call the custom keyword. Katalon only allows me to assign one test object; attempting to add the second object overwrites the first object. Is there a way I can assign two test objects to one custom keyword?

def WaitForLoadComplete (TestObject loadingImage,
                         TestObject targetObject)
    WebUI.WaitForElementNotVisible(loadingImage, 30)
    WebUI.WaitForElementVisible(targetObject, 30)


  • Hi Scott,

    You can switch to Script view and manually add a test object there. Currently, Manual view of Custom Keyword does not support selecting the second object, so you need to do it in Script view

This discussion has been closed.