First test classs

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;

public class Firstclass {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        WebDriver driver=new FirefoxDriver(); //runtime polymorphism
        driver.get("http://mptyagist.blogspot.in/");  //get to hit URL in the browser
        System.out.println(driver.getCurrentUrl());
        //System.out.println(driver.getPageSource());
        System.out.println(driver.getTitle());
       
    //Conut of the link on the page
        System.out.println("Count of the link on page");
        System.out.println(driver.findElements(By.tagName("a")).size());
       
    }

}

4 comments:

  1. These minimal information and facts will be built coupled with numerous track record information and facts. I favor this significantly.
    Allahabad BCom Time Table 2020
    Brij BCOM TimeTable 2020
    DAVV BCOM TimeTable 2020

    ReplyDelete
  2. This is really a worthy and wonderful blog about Software Testing Companies in Chennai to read and further more tips on the Software Testing Companies in India have been learnt. thanks for sharing your views among us and its great time spending on this. I am waiting for new post here about Software Testing Companies in Bangalore and Please keep it up in future..

    Consult today to - Software Testing Companies in Mumbai

    ReplyDelete