lib/scoutui/commands/utils.rb in scoutui-2.0.3.25.pre vs lib/scoutui/commands/utils.rb in scoutui-2.0.3.26.pre

- old
+ new

@@ -182,11 +182,11 @@ !_action.match(/assign\(([\w]+)\s*\,(.*)\)\s*$/i).nil? end def isSelectWindow?(_action) Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " isSelectWindow?(#{_action})" - !_action.match(/select_window/i).nil? + !_action.match(/^\s*select_window/i).nil? end def isExistsAlert?(_action) !_action.match(/(exist[s]*_*alert|existAlert|existsAlert|existsJsAlert|existsJsConfirm|existsJsPrompt)\(/i).nil? end @@ -234,10 +234,10 @@ def isPause?(_action) !_action.match(/pause/).nil? end def isSelect?(_action) - !_action.nil? && _action.match(/select/i) + !_action.nil? && _action.match(/^\s*select\s*\(/i) end def isNavigate?(_action) !_action.nil? && _action.match(/(navigate|url)\(/i) end