Friday, June 27, 2014

Tools in Selenium to find out the locators

Do we need to call Selenium RC and Selenium WebDriver as tools ?

The answer is No. Because you use Eclipse IDE software to write Java Programs which contains the commands of Selenium RC and Selenium WebDriver. So Selenium in not a software or tool instead Selenium RC and Selenium WebDriver contains just commands for operations like click, enter text, select etc.

Conclusion - Selenium Automation is nothing but using Selenium commands with the help of any programming language like Java.

Internet Explorer Browser -
  1. Do we have to install anything in Internet Explorer? The Answer is No. Starting from Internet Explorer 7 to the latest version of the browser, IE Developer Tools are inbuilt in the IE browser.
  2. Open www.google.com in any Internet Explorer Browser as shown in the screenshot  

     3. Press 'F12' key on your keyboard
     4. Ensure that 'IE Developer Tools' are displayed in the IE browser window as shown below



      5. At this point I would like to say that 'IE Developers Tools' shown above are used to identify the           locators while using the IE Browser. I am not going to explain how to identify the locators using the 'IE Developers Tools' as in all the cases I recommend using Firefox browser's FireBug and FirePath Tools to find out the locators

    
Chrome Browser -
  1. Do we need to install anything in Chrome Browser? The Answer is No. 'Google Chrome Developer Tools' are inbuilt in the Chrome Browser
  2. Open www.google.com in the chrome browser
  3. Press 'F12' on your keyboard
  4. Ensure that 'Google Chrome Developer Tools' are displayed in the Chrome Browser as shown below

     5. At this point I  would like to say the 'Google Chrome Developer Tools' shown above are used to identify the locators while using the Chrome Browser. I am not going to explain how to identify the locators using the 'Google Chrome Developer Tools' as in all the cases I recommend using Firefox browser's FireBug and FirePath Tools to find out the locators.

No comments:

Post a Comment