패키지 | mx.automation |
클래스 | public class AutomationID |
상속 | AutomationID Object |
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
property_1_name{property_1_value property_1_type}property_2_name{property_2_value property_2_type}|property_1_name{property_1_value property_1_type}property_2_name{property_2_value property_2_type}
Consider a Flex application with following hierarchy:
Application -- > Accordion -- > HBox -- > Button
The AutomationID of the button would consist of four AutomationIDParts, one for application, one for Accordion, one for HBox, and one for the Button. AutomationIDPart is a table of property names and their values. The property-value pairs are different for different object types. These property-value pairs should be usable to identify the object uniquely.
AutomationID is created by walking the parent hierarchy of the leaf child object and creating
the AutomationIDPart for each object encountered. Parents that have
showInAutomationHierarchy
set to false
are skipped. Children of such
parents are considered the children of the next higher
parent whose showInAuto
flag is set to true
. During recording,
this AutomationID can be saved by the agent.
During playback when Agent provides AutomationID for finding an object, the Display object
hierarchy is walked from the top Application object downwards. At each level, a child that
matches the AutomationIDPart closest is picked up from the list of all the children. If
multiple children match the criteria, an error is thrown. Users are responsible to resolve
such conflicts by providing a unique automationName
or identifying new properties on
objects which make them unique.
Agents should save the object information if they desire persistence. AutomationID provides
toString()
and parse()
methods to convert the object to a
string representation and back.
You can use the IAutomationManager.createAutomationID()
and
IAutomationManager.resolveAutomationID()
methods
to create and resolve AutomationID objects, respectively.
You can use the IAutomationObjectHelper.helpCreateIDPart()
and IAutomationObjectHelper.helpResolveIDPart()
methods
to identify a child with in a parent which matches the AutomationIDPart.
기타 예제
속성 | 정의 주체 | ||
---|---|---|---|
constructor : Object
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다. | Object | ||
length : int [읽기 전용]
The number of parts in this id. | AutomationID |
메서드 | 정의 주체 | ||
---|---|---|---|
Constructor. | AutomationID | ||
Adds a parts to the front of the id. | AutomationID | ||
Adds a parts to the end of the id. | AutomationID | ||
Concatenates another id to this id. | AutomationID | ||
Compares this object with the given AutomationID. | AutomationID | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
Indicates if there are more parts of the id. | AutomationID | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
[정적]
Parses the string and returns an id. | AutomationID | ||
Returns the first object in the id
| AutomationID | ||
Returns the last object in the id. | AutomationID | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
Removes the first object from this id. | AutomationID | ||
Removes the last object from this id. | AutomationID | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
Serializes the id to a string. | AutomationID | ||
지정된 객체의 프리미티브 값을 반환합니다. | Object |
length | 속성 |
AutomationID | () | 생성자 |
public function AutomationID()
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Constructor.
addFirst | () | 메서드 |
public function addFirst(p:AutomationIDPart):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Adds a parts to the front of the id.
매개 변수
p:AutomationIDPart — Map of properties.
|
addLast | () | 메서드 |
public function addLast(p:AutomationIDPart):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Adds a parts to the end of the id.
매개 변수
p:AutomationIDPart — Map of properties.
|
concat | () | 메서드 |
public function concat(other:AutomationID):AutomationID
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Concatenates another id to this id. Returns a new id, and does not mutate this instance.
매개 변수
other:AutomationID — id to concatenate.
|
AutomationID — This id concatenated with the other id.
|
equals | () | 메서드 |
public function equals(other:AutomationID):Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Compares this object with the given AutomationID.
매개 변수
other:AutomationID — AutomationID object which needs to be compared.
|
Boolean — true if they are equal, false otherwise.
|
isEmpty | () | 메서드 |
parse | () | 메서드 |
public static function parse(s:String):AutomationID
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Parses the string and returns an id.
매개 변수
s:String — Serialized form of the id as provided by the toString() method.
|
AutomationID — Parsed id.
|
peekFirst | () | 메서드 |
public function peekFirst():AutomationIDPart
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Returns the first object in the id
반환값AutomationIDPart — First object in the id.
|
peekLast | () | 메서드 |
public function peekLast():AutomationIDPart
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Returns the last object in the id.
반환값AutomationIDPart — Last object in the id.
|
removeFirst | () | 메서드 |
public function removeFirst():AutomationIDPart
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Removes the first object from this id.
반환값AutomationIDPart — First object in this id.
|
removeLast | () | 메서드 |
public function removeLast():AutomationIDPart
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Removes the last object from this id.
반환값AutomationIDPart — Last object in this id.
|
toString | () | 메서드 |
Tue Jun 12 2018, 03:17 PM Z