Ignore SSL Certificate -.relaxedHTTPSValidation()

 

- Ignore the SSL certificate:  .relaxedHTTPSValidation()


@Test
public void SSLCERTIFICATE() {
RestAssured.baseURI = "https://expired.badssl.com/";
given().log().all().relaxedHTTPSValidation()// off certification validation 
.when().get().then().assertThat().statusCode(200);
}


1- Certificate Error




Comments

Popular posts from this blog

Implicit and Explicit Waits,FluentWait,PageLoadTimeOut

A Interview Questions- selenium