Today we focus on Selenium simple program which open Browser and redirects to Softpost.org using C#.net language code.
- Open Visual Studio and Create new Console Application also add references of OpenQA dlls as shown below:
Click on Add Reference then following window appears where you need to browse and add reference.
Start writing the below code which opens browser.
when you execute this program you may encountered error as below:
This is because geckodriver is not available in bin/debug directory of project which needs to be downloaded from seleniumhq.org site and paste it in /bin/debug/ directory of project.
Once you execute it you may find the page as below:
That’s all for the day.