WebDriver driver= new FirefoxDriver(); driver.get("http://google.com");
WebElement element = driver.findElement(By.className("gbqfba")); String strng = element.getText(); System.out.println(strng); Assert.assertTrue("Google Search", strng);
No comments:
Post a Comment