How to Load Html Response in present Page

Hi Team,
Initially i am loading a web page and it contains loadmore Button

If when i click the button its making an Ajax call and getting Html responce

for every click it loads next 24 products .

How can i load the Html response for the present page and click next load more button

Sumanth P

You have to do something like that:

new HttpRequest().XHR().url(moreButton.getAttribute("data-url"))
          .param("selectedUrl", moreButton.getAttribute("data-url"))
          .assertContent("Nothing came back from XHR.", true, HttpRequest.NOT_BLANK)

The appendTo part is important. The returned HTML fragment will be inserted at the specified position which is a regular selector.