Class RestHtmlResponse


  • public class RestHtmlResponse
    extends java.lang.Object
    Created by Claudia Agache on 10/13/2016.
    • Constructor Detail

      • RestHtmlResponse

        public RestHtmlResponse​(io.restassured.http.Headers headers,
                                io.restassured.response.ResponseBody body)
    • Method Detail

      • getBody

        public io.restassured.response.ResponseBody getBody()
        Returns:
        the ResponseBody
      • assertResponseContainsImage

        public void assertResponseContainsImage()
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • assertPathInHtmlBodyEquals

        public void assertPathInHtmlBodyEquals​(java.lang.String elementHtmlPath,
                                               java.lang.String value)
        Assetion that a html element with specific html path has the specified value
        Parameters:
        elementHtmlPath - the HTML path of the HTML element
        value - value of the field