Q7

Use widget data to locate widgets

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.3.3
  • Fix Version/s: 1.3.x
  • Component/s: ECL, Runtime
  • Labels:
    None
  • Test Mode:
    Manual

Description

Problem

When widgets have no labels or labels are not unique, currently we use indices to identify them. This creates potential problem when widgets added/removed, so that indices may change. This can be improved if we could use a widget's data for identification.

ECL changes

We add a new argument -data to widget selector commands (like get-button, get-editbox, etc.). A data argument can accept either a string value (if application uses something like widget.setData("widgetName")), or a key/value pair (if application uses widget.setData("name", "widgetName")).

Example:

get-button -data "myButton" | click
get-button -data name buttonName | click

Recording changes

On Options tab in a Control Panel we add a new pair of options (similar to what we have for 'use text contexnt for part identity'):

  • Checkbox 'Use widget data when name is not unique'
  • Textbox 'Use following keys as widget name' – comma-separated list of keys which can be used, default value just name
    So that when this feature is enabled and widget's name is not unique, Q7 will check whether getData by given keys/without a key is available and unique.

Activity

There are no comments yet on this issue.

People

  • Assignee:
    komaz
    Reporter:
    komaz
Vote (0)
Watch (0)

Dates

  • Created:
    13/Jun/13 3:58 PM
    Updated:
    25/Oct/13 1:54 PM