October 30, 2015

Run selenium tests in Chrome and IE browser

How to run the selenium test scripts in Chrome/IE browser ?

To run the selenium test cases in Chrome/IE browser is necessary and need of today's web world as Chrome being the one of the best and most widely used web browser.

Selenium by default supports only Mozilla Firefox . 

To run your tests in Chrome browser please do the following set-up.

1. Download chrome browser related jar file from here.

2. Set the System configuration by adding the following code.

System.setProperty("webdriver.chrome.driver", "Path to chrome related jar file downloaded in step 1");
WebDriver driver = new ChromeDriver();

To run the test in Internet explorer.

1. Download IE browser related jar file from here.

2. Set the System configuration by adding the following code.

System.setProperty("webdriver.ie.driver", "C:\\Users\\ajain5\\Downloads\\IEDriverServer.exe");
WebDriver driver = new InternetExplorerDriver();



24 comments:

  1. Thanks for sharing this information.It was very nice blog to learn about Selenium

    ReplyDelete
  2. Thanks for sharing this information, it helped me a lot in finding valuable resources for my career
    SEO Training in Chennai

    ReplyDelete
  3. Thanks for the informative article. This is one of the best resources I have found in quite some time. Nicely written and great info. I really cannot thank you enough for sharing.
    Regards,
    Camellia
    SAP Training in Chennai

    ReplyDelete

  4. Thanks for sharing great information in your blog. Got to learn new things from your Blog . It was very nice blog to learn about Selenium

    ReplyDelete
  5. Interest to learn Selenium Online Training by Real Time Software Testing Professional Trainer having 10+ Years of Expert.
    Selenium Training in Hyderabad

    ReplyDelete
  6. Nice Blog, Thank you for sharing nice article. It's useful to us.

    Online Selenium Training

    ReplyDelete
  7. ERPTREE is a leading oracle fuison HCM Training Institute. we offer this course through online we have great experience in succeeding students through online courses. we can calculate our performance through their honest comments in our sites in supporting our services. we have referral program so candidates can earn money through referral. you can share your live xperience with other can generate you some money


    Oracle Fusion HCM Training

    ReplyDelete
  8. really informative post you have been posted. keep on sharing such kind of useful posts. thank you for this useful blog.
    selenium training in chennai

    ReplyDelete
  9. you have shared really a nice article. it will be really helpful to the peoples who are all learning this technology. thank you for sharing this blog. keep on sharing this kind of interesting blogs.
    android training in chennai

    ReplyDelete
  10. Thank you so much for sharing this worth able content with us. The concept taken here will be useful for my future programs and i will surely implement them in my study. Keep blogging article like this.

    selenium training in bangalore|

    ReplyDelete
  11. Your new valuable key points imply much a person like me and extremely more to my office workers. With thanks.

    Hadoop online Training \ Informatica Online Training \ ETL Testing Online Training

    ReplyDelete

  12. Thanks for the useful information of software testing courses, give more updates on software testing development, First time I visit your blog really nice, I bookmark your blog here after a daily visit. Learn software testing course in Chennai

    ReplyDelete
  13. I have read your blog and i got a very useful and knowledgeable information from your blog.You have done a great job .Please visit our page Selenium Training in Chennai | Selenium Training institutes in Chennai

    ReplyDelete