|
Locator
Element locator syntax
IntroductionEft uses CSS selector syntax to locate Elements of the Windows application with little difference. Here list the supported selector types and the difference with W3C standard selectors. Supported SelectorsUniversal selector* select all elements of the application Type selectorE (eg.Button) select Element with control type E Attribute selectorE[foo='content like 'this''] foo := className | name| id select Element with control type E and attribute foo with the value "content like 'this'". So far the attribute value can not contain "[". Id selector#id E#id E#'id with space' id selector is identical to id' ClassName selector.class E.class E.'class with space' Class selector is identical to className='class' Notice: The value of id and class selector can not contain single quotes, if they do contain single quotes, use attribute selector syntax instead. Structural pseudo classE:nth-of-type(n) E:first-of-type E:last-of-type Combination SelectorsE F E > F Differences with standard W#C CSS selectorIn eft:
|
► Sign in to add a comment