-1
.//*[contains(@class, 'alert alert-warning fade in')]
!! 4 배 데이터 입력이있을 때 버튼을 클릭 할 때 나타나는 xpath는 표시되지 않습니다.xpath에서 TestNg 유효성 확인
정상적인 경우 다른 조건을 사용하려고하면 정상적으로 작동합니다. 하지만 TestNg Assertion 케이스에서 유효성을 검사하는 방법은 무엇입니까?
xpath가있는 경우 exit를 찾고 다른 방법을 계속 사용하십시오. 으로 다른 기록이 올바른 절차 내가 한
public void DataVal() throws InterruptedException {
click3.click(); //Here click3 is submit button xpath
Thread.sleep(2000);
Assert.assertFalse(wd.findElement(By.xpath(".//*[contains(@class, 'alert alert-warning fade in')]")).isDisplayed());
}
아래를 시도하지만
no such element: Unable to locate element: {"method":"xpath","selector":".//*[contains(@class, 'alert alert-warning fade in')]"}
를 받고이를 확인하기 위해 자신의 anyother 방법인가하고 있지 않은 경우. 여기