meteor - Click/select selectize field with selenium/webdriver.io -
i running cucumber test chimp.js under meteor.js.
i click , select item selectized field selenium/webdriver.io. moreover, irrelevant, use reactive-selectize package under meteor.
while testing environment under chrome processing, defined run following action selenium/webdriver.io; in step tried following alternatives:
browser.click('#select'); // alternative browser.click('div.selectize-control'); // alternative b browser.click('div.selectize-input'); // alternative c
none of these actions triggered opening of selectize dropdown list.
however, if try
browser.execute(function(bookshop_id) { var $sel = $('#new-order-bookshop').selectize()[0]; $sel.selectize.setvalue('bps3e8t3plrnd8ywz'); // select value via selectize }, bookshop_id);
it re-runs selectize on select field, s gone. guess, overwriting options meteor app generated. manually add options/items, rather awkward solution.
how can select items of selectize field selenium/webdriver.io?
Comments
Post a Comment