Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioz committed Nov 20, 2023
1 parent 0025352 commit d1974b9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -279,13 +279,15 @@ def start_highlight(
"Unable to make match because `set_window_locator` was not previously used to set the window of interest."
)

self.reset_to_default_state()
self._state = _State.highlighting

matched_controls = self._element_inspector.start_highlight(
locator,
search_depth=search_depth,
timeout=0,
search_strategy=search_strategy,
)
self._state = _State.highlighting

parent = self._element_inspector.control_element
return to_matches_and_hierarchy(parent, matched_controls)
Expand Down

0 comments on commit d1974b9

Please sign in to comment.