October 2018
Intermediate to advanced
192 pages
5h 12m
English
The command, in our case, will be an abstract class that will have overloaded versions of the execute method. This has been done so that, if we want to create a concrete command class, we don't need to add code to all of the methods of the ACommand interface. The concrete command classes will have the AActionKeyword object, and there will be execute methods that are required for that particular operation. For example, if the operation is a click operation, then there will be just the usage of the no argument execute method.
Next comes the dummy class, ACommand, which has empty implementations.
The following code shows the ACommand abstract class:
public abstract class ACommand { public void execute(String x) { } public void execute(WebDriver ...Read now
Unlock full access