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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -