In this recipe, we will see how to implement a generic
Login class. The class captures both, the GUI structure and the processes that are common to all applications with regard to their user access module. It is agnostic to the particular object classes, their technologies, and other identification properties. The class shown here implements the command wrapper design pattern, as it encapsulates a process (
Login) with the main default method (
You can use the same function library
cls.Google.vbs as in the previous recipe Implementing a simple search class, or create a new one (for instance,
cls.Login.vbs) and associate it with your test.