action #25712
closedfeature request for assert_and_click - define exact area for click
0%
Description
I have sometimes difficult to make needle for assert_and_click as following example:
https://openqa.opensuse.org/tests/496499#step/yast2_lang/11
It will be useful if I can define the exact point of mouse click, not always the default point at middle of a needle.
Thanks!
Updated by okurz about 7 years ago
- Category changed from 136 to Feature requests
Keep in mind that "assert_and_click" "clicks in the middle of the last match region as defined in the needle JSON file" as described in the documentation http://open.qa/api/testapi/#_assert_and_click so there are multiple options. In the yast2_lang example you showed I would simply cover a bit more left of the check box so that more of the right-hand label is covered. But I can imagine this is not obvious to everyone and also in some cases might still not be possible so I consider this ticket a valid feature request although of low value and high effort. @szarate I leave further triaging to you but I suggest "low" and "future" for now as long as not more details are planned within the feature regarding how integration into the openQA webUI needle editor can look like.
Updated by mkittler about 7 years ago
regarding how integration into the openQA webUI needle editor can look like.
I think the first step would be enabling this in os-autoinst. Should not be more than attaching further meta data to the needle and using them in the click implementation. This feature could then already be used by editing the JSON manually. If the feature is useful enough, it could also be integrated in the web UI. Would be some JavaScript coding with the canvas, but doable of course.
as long as not more details are planned
You're right, I can think of two details which should be clarified:
- I assume the coordinates must be relative to the area? I guess making it relative to the top-left corner of the area would be the easiest way to implement it.
- Do we want a constraint that the point must be inside the area? Would make sense in the first place but might be annoying to implement in the web UI and decreases flexibility. So I'd say no.
Updated by okurz about 7 years ago
mkittler wrote:
- I assume the coordinates must be relative to the area? I guess making it relative to the top-left corner of the area would be the easiest way to implement it.
yes, exactly.
- Do we want a constraint that the point must be inside the area? Would make sense in the first place but might be annoying to implement in the web UI and decreases flexibility. So I'd say no.
To think of an easy implementation webUI wise I think of drawing up another small area - possibly just in another color - within an existing matching area which gets linked to the match area to show where to click.
Updated by okurz over 5 years ago
- Is duplicate of action #49943: [tools] Add new needle match type: "click" added
Updated by okurz over 5 years ago
- Status changed from New to Rejected
- Assignee set to okurz