Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

[ON HOLD] Add ___location to app_output #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion applitools/core/match_window_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,14 @@ def _prepare_match_data_for_window(self, tag, # type: tp.Text
with self._eyes.hide_scrollbars_if_needed():
self._screenshot = self._eyes.get_screenshot(hide_scrollbars_called=True)
dynamic_regions = MatchWindowTask._get_dynamic_regions(target, self._screenshot)
app_output = {'title': title, 'screenshot64': None} # type: AppOutput

region_or_element = self._eyes._region_to_check
if region_or_element is not None:
___location = region_or_element.___location
else:
___location = {'x': 0, 'y': 0}

app_output = {'title': title, 'screenshot64': None, '___location': ___location} # type: AppOutput

if self._eyes.send_dom:
dom_json = self._eyes.try_capture_dom()
Expand Down