Friday, 13 February 2015

FAMILIARIZING WebDriver COMPONENT

WHAT IS WebDriver?

       Selenium WebDriver.  The biggest change in Selenium recently has been the inclusion of the WebDriver API. Driving a browser natively as a user would either locally or on a remote machine using the Selenium Server it marks a leap forward in terms of browser automation.

CREATING WebDriver OBJECT

        For writing test case in selenium we need WebDriver object .The  Procedure is similar to other object declaration. Here we have to create particular object for each web browsers

                                                 For Internet Explorer
                                                 WebDriver driver = new InternetExplorerDriver ();  

                                                 For Firefox
                                                 WebDriver driver = new FirefoxrDriver ();  

                                                 For Chrome
                                                 WebDriver driver = new FirefoxrDriver ();  

                                                 For Opera
                                                 WebDriver driver = new FirefoxrDriver ();

      Here driver is the object we are going to use in our test case. In this tutorial we move forward by completing task one by one. We will be using FirefoxDriver that.

No comments:

Post a Comment