Creating a test without using the object repository is known as descriptive programming since you describe the objects as part of the script.
e.g.
Browser("title:=Google").Page("title:=Google").Link("text:=Advanced Search").Click
Note the :=
in the test objects' names, this is not a smiley it means that the property title
has value Google
(as a regular expression).
You can also use the Description
object via Description.Create
.
You can see more details here.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…