diff --git a/addons/web_tour/static/src/js/tour_manager.js b/addons/web_tour/static/src/js/tour_manager.js index 829c06e7dc5..8d6d35c102f 100644 --- a/addons/web_tour/static/src/js/tour_manager.js +++ b/addons/web_tour/static/src/js/tour_manager.js @@ -146,10 +146,13 @@ var RunningTourActionHelper = core.Class.extend({ if (values.consume_event === "input") { values.$element.trigger("keydown").val(text).trigger("keyup").trigger("input"); } else if (values.$element.is("select")) { - values.$element.children("option") - .prop("selected", false).removeProp("selected") - .filter(function () { return $(this).val() === text; }) - .prop("selected", true); + var $options = values.$element.children("option"); + $options.prop("selected", false).removeProp("selected"); + var $selectedOption = $options.filter(function () { return $(this).val() === text; }); + if ($selectedOption.length === 0) { + $selectedOption = $options.filter(function () { return $(this).text() === text; }); + } + $selectedOption.prop("selected", true); this._click(values); } else { values.$element.text(text);