Google+

Running Selenium WebDriver Automation scripts on Opera Browser

Before knowing the process of running Selenium WebDriver Automation scripts on Opera Browser, first we need to know, what are all the browsers that Selenium supports.

Selenium supports the below 5 browser types:

i.e. Firefox, Chrome, Internet Explorer, Safari and Opera.


Most of the projects in the market execute their scripts on Firefox, Chrome and Internet Explorer Browsers.

And there also few projects, which want their application to work even on Safari and Opera browsers, apart from the most commonly used Firefox, Chrome and Internet Explorer Browsers.

Hence in this post, I will explain on how to execute the Selenium WebDriver automation scripts on Opera Browser.

Executing Selenium WebDriver Automation scripts on Opera Browser:

1. Search 'Opera Browser' in Google, download the Opera Browser, installed it and finally it should look as shown below on launching:



2. We need to download OperaDriver for Selenium. To download, open http://www.seleniumhq.org/download/ , scroll down and click on the below option:



3. New page will be opened, and click on the below option for Windows 32 bit machine as shown below:



4. The below zip file will be downloaded:



5. Extract the zip file, open the extracted folder and copy the operadriver.exe file as shown below:



6. Create a new Java project and configure it with Selenium as shown below:



7. Create 'drivers' folder and paste the operadriver.exe copied in step 5 as shown below:



8. Create a new Java class and write the below Selenium code:



9. Execute the above shown code and observe that the below things will be performed on Opera browser:

a. Opera browser will be launched
b. http://www.omayo.blogspot.com will be opened in Opera browser
c. 'Selenium143' link will be clicked and navigated to http://www.selenium143.blogspot.com
d. And finally browser will be closed as per the above written code.

Hence, we need to use OperaDriver.exe, to run the Selenium WebDriver Automation scripts on Opera Browser.

No comments:

Blog Index