% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{.chromote_get_html}
\alias{.chromote_get_html}
\title{Fetch fully-rendered HTML with chromote}
\usage{
.chromote_get_html(
  url,
  wait = 8,
  click_more_selector = NULL,
  scroll = TRUE,
  max_clicks = 50L,
  session = NULL
)
}
\arguments{
\item{url}{Character. Destination URL.}

\item{wait}{Numeric. Seconds to wait after initial navigation. Default 8.}

\item{click_more_selector}{Optional CSS selector for a "load more" button
that should be clicked repeatedly until it disappears.}

\item{scroll}{Logical. Scroll to the bottom after each click? Default TRUE.}

\item{max_clicks}{Integer. Safety cap for the click loop. Default 50.}

\item{session}{Optional pre-existing \code{chromote::ChromoteSession}. When
supplied it is reused (callers are responsible for closing it).}
}
\value{
A character string containing the full page source.
}
\description{
Opens a headless Chrome session via \pkg{chromote}, waits for the page to
settle, optionally clicks a "load more" button and/or scrolls, and returns
the complete page source.
}
\keyword{internal}
