Closed NTHang closed 6 years ago
Code mà nhìn như này thì anh cũng thua thôi.
Nhưng mà Verify trong testing không ai dùng lệnh if cả. Người ta dùng ngay phương thức assertXXX trong TestNG hoặc Junit.
sao đoạn code này ko bị lỗi compile nhỉ, annotation Test và BeforeTest viết thường mà IDE vẫn cho pass mới kỳ =))
@thanh1985tq cho do lỗi lúc copy lên github thôi. Gihub tự formatting lại, chữ thường và chữ hoa đôi khi tự nó đổi.
Em đang gặp phải lỗi khi kiểm tra việc sử dụng phím tab. Mọi người giúp em sao lại ko pass ạ. Code của em đây ạ
package GUI; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.Dimension; import org.openqa.selenium.Keys; //import org.openqa.selenium.Keys; //import org.openqa.selenium.WebDriverException; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.FirefoxDriver; import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test;
@SuppressWarnings("unused") public class KTTab { WebDriver driver; @BeforeClass public void setUp() { //driver = new ChromeDriver(); driver = new FirefoxDriver(); } @Test public void user_Tab() throws Exception { driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
}
=============================================== Default test Tests run: 1, Failures: 1, Skips: 0
=============================================== Default suite Total tests run: 1, Failures: 1, Skips: 0