Project

General

Profile

Actions

action #31198

closed

Multi area needles: support needle-checks relative to previous matches

Added by nicksinger about 6 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
Feature requests
Target version:
-
Start date:
2018-02-01
Due date:
% Done:

0%

Estimated time:

Description

Summary

openQA already supports needles with more then one area to check. These needles can be used for e.g. assert_and_click while openQA will click in the last area created for the needle (from the docs: "[…] Then click $button in the middle of the last match region as defined in the needle JSON file.").

Problem

Right now the areas in the needle get matched independent of each other. It can happen that one area of the needle matches multiple places on a screenshot. If this smaller area gets (indirectly) used for an assert_and_click this can result in a click on the wrong UI element even though the bigger, second area of the needle matches the right region in the screenshot.

Suggested solution

Implement some mechanism/flag to make sure the second needle matches inside the first one

Actions

Also available in: Atom PDF