/** * * Select option with a specific value. * * :example.html :selectByValue.js it('should demonstrate the selectByValue command', function () { var selectBox = $('#selectbox'); console.log(selectBox.getValue()); // returns "someValue0" selectBox.selectByValue('someValue3'); console.log(selectBox.getValue()); // returns "someValue3" }); * * * @alias browser.selectByValue * @param {String} selector select element that contains the options * @param {String} value value of option element to get selected * @uses protocol/element, protocol/elementIdClick, protocol/elementIdElement * @type action * */ let selectByValue = function (selector, value) { return this.selectByAttribute(selector, 'value', value) } export default selectByValue