1. Selenium

Hello..

Today we focus on Selenium simple program which open Browser and redirects to Softpost.org using C#.net language code.

  1. Open Visual Studio and Create new Console Application also add references of OpenQA dlls as shown below:Selenium_1

Click on Add Reference then following window appears where you need to browse and add reference.Selenium_2

Start writing the below code which opens browser.

sele_5

when you execute this program you may encountered error as below:

sele_3

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:

sele_4

 

That’s all for the day.

 

 

 

Advertisements