This kind of thing is generally event driven, so find out what event is being issued by the browser when the page is scrolled down within x of the bottom,
count number or results by counting number of an unique element that exists in each result (usually in a header for the result)
fire the event that triggers the next segment load
wait for whatever loading indicator they display to go away
count number of results and see if it went up by the expected amount.
that the event fires is almost like testing the browser