% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{.read_html_dynamic}
\alias{.read_html_dynamic}
\title{Read dynamic HTML into an xml2 document}
\usage{
.read_html_dynamic(
  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{
An \code{xml2::xml_document}.
}
\description{
Thin wrapper around \code{\link[=.chromote_get_html]{.chromote_get_html()}} that parses the rendered HTML
with \code{\link[xml2:read_xml]{xml2::read_html()}}.
}
\keyword{internal}
