How do I capture declarations at runtime and pass them to a text file?
You can use the GenerateDecl() method to return the declaration for a window and then pass this data to a txt file. The following testcase returns the declarations for the current browser page, prints them out and writes them to a file.
[-] testcase Test1 () appstate none [ ] [ ] LIST OF STRING lsFindDecs [ ] [ ] //Set browser active [ ] Browser.SetActive( ) [ ] [ ] [ ] lsFindDecs = Browser.GenerateDecl () [ ] [ ] //Prints decs [ ] ListPrint (lsFindDecs) [ ] [ ] //Writes decs to .txt file [ ] ListWrite (lsFindDecs, "decl.txt" )
Old KB# 21129