package ru.stqa.selenium;

import org.openqa.selenium.support.PageFactory;

import org.testng.Assert;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;

import ru.stqa.selenium.pages.HomePage;

public class SampleTestNgTest extends TestNgTestBase {

  private HomePage homepage;

  @BeforeMethod
  public void initPageObjects() {
    homepage = PageFactory.initElements(driver, HomePage.class);
  }

  @Test
  public void testHomePageHasAHeader() {
    driver.get(baseUrl);
    Assert.assertFalse("".equals(homepage.header.getText()));
  }
}

@@ -68,17 +68,16 @@
 actory;%0A
-%0A
 import o
@@ -174,17 +174,16 @@
 s.Test;%0A
-%0A
 import r
@@ -495,16 +495,57 @@
 seUrl);%0A
+    System.out.println(%22Hello, world!%22);%0A
     Asse

Add test message