Below is the code where i am able to find the content.
In order to search for the text took the top most id using firebug..
Below is the code for this.
import java.io.IOException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.TestNG;
public class Searchingtext extends TestNG{
static String text1 = "What's this?";
static WebDriver driver = new ChromeDriver();
static WebElement Whole ;
/**
* @param args
*/
public static void main(String[] args) {
try{
driver.get(url);
Thread.sleep(3000);
Whole= driver.findElement(By.id("shellTD"));
System.out.println("Whole Text :::::::::::::::::++>" +Whole.getText());
if(Whole.getText().contains(text1)){
System.out.println("It is working...");
}
}catch(InterruptedException e){
e.printStackTrace();