Smart click (part 2)
Here is the explanation how you can implement your own Click() method and what is behind the scenes. I will describe the method using a pure IWebElement instance. To be able to invoke the method out of an IWebElement, it should be declared as an IWebElement interface extension method. The method will have a couple of overridden versions for different sets of input parameters. Ok, let’s start. First of all let’s define what the method should do: It checks if the clicking action may be done It checks if all the necessary conditions for successful clicking are met (for example, some …