Q7

Use -after when writing selector for composites

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.2.0
  • Fix Version/s: 1.2.23, 1.3.6
  • Component/s: Recording, Runtime
  • Labels:
    None
  • Test Mode:
    Manual

Description

In most parts of Q7 we don't take composites into account, so mostly we don't write selectors for composites, however there are usecases when it is required to assert composite properties. In this case Q7 writes line like this:
Currently asserting properties of some composite looks like this:

get-editor | get-control Any -index 55 | get-property "getChildren().length" | equals 0 | verify-true

This approach is too fragile. A good support for composites location is to be discussed, but at least we can record it like this:

get-editor | get-control Any -after [get-label "Players"] -index 12 | get-property "getChildren().length" | equals 0 | verify-true

Activity

Hide
Stanislav Belyakov added a comment - 26/Aug/13 4:33 PM

Added -after recording for unknown (including Composite) controls

Show
Stanislav Belyakov added a comment - 26/Aug/13 4:33 PM Added -after recording for unknown (including Composite) controls

People

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

Dates

  • Created:
    20/Aug/13 3:11 PM
    Updated:
    26/Aug/13 4:33 PM
    Resolved:
    26/Aug/13 4:33 PM