• Quality,  Selenium,  Selenium RC

    Locators in Selenium RC and Webdriver

    We have Locators in Selenium RC and Webdriver to identify the web elements. Some useful locators are mentioned below: ID Name Link text CSS X-path   How to find ID, Link text and Name of Web Element? Step 1: Move and put the cursor of the mouse on the web-element. Step 2: Right Click, so the action list open. Step 3: Find the Inspect Element or Inspect option and Click on it. For example: If you want to find the locator ID of Search button of Google Search: How to find CSS Locator? If ID and Name are not available or not working then we can go for CSS (Cascade…

  • Selenium RC Programmes
    Quality,  Selenium,  Selenium RC,  Selenium RC programmes

    Selenium RC Programmes

    There are some Selenium RC Programmes given here: Ques: Write a program to Login into Facebook? Program: Package SeleniumRC; Import com.thoughtworks.selenium.default selenium; Public class facebook_login { Public static void main (string [] args) { // to do auto-generated method stub Default Selenium  Selenium = new Default Selenium (“local host”, 4444, “*firefox”,” https://www.facebook.com/”); Selenium.start ();     //Launch browser Selenium.open (“https://www.facebook.com/”);  //enter and open the given url Selenium.window maximize();   //it will maximize the window screen to the full width. Selenium.type (“email”, example@email.com);   //enter the given credential in Email field. Selenium.type (“pass”, example);   //enter the given credential in Password field. Selenium.click(“u_0_2”);   //this command is for the click on the Log In Button. } }…

  • Selenium RC Specification
    Quality,  Selenium,  Selenium RC,  Selenium RC Specification

    Selenium RC Specification

    Selenium RC is a component of Selenium often called Selenium-1. RC stands for Remote Control, it acts as a Server and launches browsers but one browser at a time. Selenium RC supports multiple browser like Google Chrome, Mozilla Firefox, Safari, IE etc. also it supports multiple scripting languages like Java, PHP, C#, ruby, Perl, Python etc.  The Selenium RC Specification is given below: SELENESE The selenium commands often called as Selenese. Browser command Start: It is to launch the browser. Open: It is to open the URL of the application. Window maximize: It is to maximize the window. Stop: It is to close the browser. selenium.stop( ); Close: It is…