Getting environment ready: Before we can start writing scripts with selenium lets just see how to get the environment ready for this. I hope that you are already having visual studio installed on your system. Instead of just starting basic things with console program, we will be creating an environment which can later be used to build framework and write tests, otherwise we have to setup the environment again later when we start building framework. So, here it goes... Open visual studio Select File->New->Project as shown below: From new project window, Select visual c# then Select Class Library Enter name, select location and click ok as shown below: Now in solution explorer, under your added project, right click on References Select Manage NuGet Packages... option from window as shown below: From NuGet window install Selenium.WebDriver and Selenium.Support packages as shown below: Now, add another project i.e. a u...
Till now we have learnt about many things related to building a good automation framework. We added few tests too to our framework to see how it works. We also learnt few important things to remember for a good and robust framework. But before we progress ahead with some other stuff, lets just see which type of architecture we are using for our automation solution. It is very important to know this so as to make sure that we are building the framework robust and non-brutal and know about what and how things should work. Keeping this in mind, I think this is right time to know about this.So, below is diagram showing the basic architecture that we are using in this course. If you see this diagram then you can understand that in our architecture our tests will be utilizing the framework that we are creating, our framework in turn will be utilizing the selenium and in the end selenium will be the only thing that will be directly interacting with the browser. Hence, it is b...