? Chrome automation made simple. Runs locally or headless on AWS Lambda.
Long awaited, this release enables setting custom HTTP headers, e.g. for authentication ?
setExtraHTTPHeaders()
, which is useful for authentication #325 #31 #29 @addnabThis release includes a fix to a unhandled-promise-rejection issue which was causing many users some grief.
CHROMELESS_S3_OBJECT_KEY_PREFIX
environment variable #224 @pklingemwaitTimeout
when waiting for a selector with wait(selector, waitTimeout)
#212, #208 @janzaThis release includes a number of new API methods, a few enhancements, and some fixes. Important to note is that we've made some API method name changes as we've settled on a method naming convention. According to semver, we should bump the version to 2.0.0, however just this time, we're not going to since the project is still new and likely not yet in production in a lot of places. Many profuse apologies to our semver-purist friends.
Many thanks to all the contributors who have contributed much of the new API functionalities. ? ?? A special thanks to @criticalbh and @joeyvandijk for a great job implementing many of the API methods requested by the community. ? ? ?
clearInput()
API method #151, #133 @criticalbhsetViewport()
API method #115 @joeyvandijksetFileInput()
API method #100, #170 @criticalbhclearCache()
API method #122 @joeyvandijkscrollToElement()
command and scrollBeforeClick
constructor option #15, #167 @janzacookies(name: string)
API method #183 @criticalbhcookiesClear()
to deleteCookies()
, cookiesClearAll()
to clearCookies()
#123 @joeyvandijkcookiesGet(name: string | query: CookieQuery)
to cookies(name: string | query: CookieQuery)
, cookiesGet()
to cookies()
and cookiesGetAll()
to allCookies()
#183 @criticalbhcookiesSet()
to setCookies()
, cookiesGet()
to cookies()
and cookiesGetAll()
to allCookies()
#185 @adieuadieustrictNullChecks
compiler option #154 @clebertclearCookies()
to check that it can clear cookies before trying to clear them #123 @joeyvandijkoptions.launchChrome = false
, use port
from options
instead of this.chromeInstance
, the latter of which does not contain port information when Chromeless did not launch Chrome itself (e.g. in the Proxy) #162, #99 (comment), #159 @torbsos.tmpdir()
when saving screenshots/pdfs to disk. #129, #172, #137 @Kivol, @elishererThis release includes a number of new API methods, and a few enhancements. Using chrome-launcher, Chromeless will now launch Chrome automatically when it detects that Chrome isn't already running. Most notably, the majority of the new functionality has been contributed by the community—thank you all! ?
html()
and setHtml()
API methods for getting and setting HTML #112, #74 @seangranseemousedown()
and mouseup()
API methods #118 @criticalbhfocus()
API method #132 @criticalbhpdf()
API method #84 @seangranseesetUserAgent()
API method to set the user-agent #117 @joeyvandijkCDP.New()
#103 @liady.evaluate()
now returns the resulting value or a Promise #110 @joelgriffithInitial public release.