package com.revathi.adminuat;

import org.openqa.selenium.By;
import org.openqa.selenium.support.ui.Select;

import java.util.Random;

/**
 * Created by ACER on 12/16/2014.
 */
public class Utils extends BaseClass{

    public static int generateRandomNo()
    {
        Random random1=new Random();
        int randomNumber=random1.nextInt();
        return randomNumber;
    }
    public static boolean isTextPresent(String text)
    {
        return driver.findElement(By.tagName("body")).getText().contains(text);
    }

    public static void selectFromDropDown(By by,String text)
    {
        Select sel= new Select(driver.findElement(by));
        sel.selectByVisibleText(text);
    }

    public void getElement(){

    }

}

@@ -423,32 +423,89 @@
 ing text)%0A    %7B%0A
+        System.out.println(%22in method : isTextPresent%22);%0A
         return d

Update Utils.java