appstate Setup () basedon DefaultBaseState TextEditor.File.New.Pick () DocumentWindow.Document.TypeKeys ("Test Case<Home>") TextEditor.Search.Find.Pick () Find.CaseSensitive.Check () Find.Direction.Select ("Down")