Katalon Analytics (beta) – Bringing new insights into test reports. Learn more!

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)
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!