The variable that is initialized as "mail", later on is used as "email"
But the most important thing is:
the correct way to implement client variable in start method is :
client = IWindows.getInstance(this);
Discussion posts and replies are publicly visible
To clarify
The interface IClient represents an abstraction to make low-level OS API calls. This interface is preferred over IWindows, aiming to make development independent of specific Operating Systems. Along with this interface, there are specific interfaces for other OS: Windows, Linux and Mac.
The interface IWindows, which inherits from IJidokaRobot, provides a lot of specific Windows functionalities. If our robot is going to run on a Windows operating system and we are going to operate applications which run on Windows, we should use this interface,
so this is valid as you mention
IWindows windows = IWindows.getInstance(this);
But this is also valid
private IClient client;
client = IClient.getInstance(this);
Thank you, IClient is valid but not working in this particular case, IWindows working. If you try to run this robotic process with client = IClient.getInstance(this); you'll see that it doesn't work
Got it! . if you don't mind can you share the error you get?
Hi, the error is already in the IDE if you try to declare the client variable as IClient!
I also tried to cast, but while you can fool the IDE and pass the compilation, then when running the robot you have this error:
Maybe there are other ways to solve, but in the tutorials it is repeated several times to use the code exactly as it is written in the guide (copy + paste), copying the code does not exactly work. I have found this solution to go on.
Hi Antonio:
You are right, we will change the course to modify the constructor to:
The use of IClient interface is recommended to create multiOS robots, but in this case, we will automate a Windows application, and the course suggests the IWindows interface to use specific Windows methods.
Thanks for your suggestion.