Set a select2 value using select2("data", object)
browser.setSelect2Data("input[type=hidden].has-select2", {id:1, text: "hello"})
Author: maxgalbu
- String selector - jQuery selector for the select2 input/select2
- Object data - data of the element to be set (see the example)
- Function [callback] - function that will be called after the element's value has been set