My favorites | Sign in
Project Logo
eft
                
Search
for
Updated Oct 15, 2007 by exceedhl
Labels: Featured
Locator  
Element locator syntax

Introduction

Eft 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 Selectors

Universal selector

* 

select all elements of the application

Type selector

E (eg.Button) 

select Element with control type E

Attribute selector

E[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 class

E:nth-of-type(n)
E:first-of-type
E:last-of-type

Combination Selectors

E F
E > F

Differences with standard W#C CSS selector

In eft:



Sign in to add a comment
Hosted by Google Code