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

How do I use Katalon with Kendo Drop Down List?

I am attempting to use Katalon to select a drop down value (kendo drop down list).  The following script shows the test selecting the appropriate value for the drop down:

((DriverFactory.getWebDriver())

as JavascriptExecutor).executeScript('$("#SchoolYearId").data("kendoDropDownList").select(7);')

However, when the form submits, the validation fails as if it wasn't selected.  Any ideas?

Comments

  • Hi Don, please put WebUI.waitForJQueryLoad before your selection script to ensure jQuery is ready.

    Here is my sample:

    WebUI.openBrowser('')

    WebUI.navigateToUrl('http://demos.telerik.com/kendo-ui/dropdownlist/index')

    WebUI.waitForJQueryLoad(30)

    (DriverFactory.getWebDriver() as JavascriptExecutor).executeScript('$("#color").data("kendoDropDownList").select(1);')

    Thanks.
  • That isn't working.  It doesn't look like there is any pause at all.

    JQuery is reported as ready, and the drop downs look like they select the values, but when the test submits (clicking the Submit button), the values disappear and the validation fails because no values are there.

    This seems like it should be a no brainer which is really frustrating us as we attempt to evaluate Katalon as our testing tool.

     

    Any other ideas?
  • The issue had to do with the value selected.  While it looks like you can set the .select() to the value of the option, it is in fact the index.  Passing a valid index into the .select() rather than a value that might be higher than the highest index.
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!

In this Discussion