Releases: crwlrsoft/crawler
Releases · crwlrsoft/crawler
v3.4.0
Added
- Two new methods to the base class of all
Http
steps:skipCache()
– Allows using the cache while skipping it for a specific loading step.useBrowser()
– Switches the loader to use a (headless) Chrome browser for loading calls in a specific step and then reverts the loader to its previous setting.
- Introduced the new
BrowserAction::screenshot()
post browser navigate hook. It accepts an instance of the newScreenshotConfig
class, allowing you to configure various options (see the methods ofScreenshotConfig
). If successful, the screenshot file paths are included in theRespondedRequest
output object of theHttp
step.
v3.3.0
Added
- New
BrowserAction
s to use with thepostBrowserNavigateHook()
method:BrowserAction::clickInsideShadowDom()
BrowserAction::moveMouseToElement()
BrowserAction::moveMouseToPosition()
BrowserAction::scrollDown()
BrowserAction::scrollUp()
BrowserAction::typeText()
BrowserAction::waitForReload()
- A new method in
HeadlessBrowserLoaderHelper
to include the HTML content of shadow DOM elements in the returned HTML. Use it like this:$crawler->getLoader()->browser()->includeShadowElementsInHtml()
.
Changed
- The
BrowserAction::clickElement()
action, now automatically waits for an element matching the selector to be rendered, before performing the click. This means you don't need to put aBrowserAction::waitUntilDocumentContainsElement()
before it. It works the same in the newBrowserAction::clickInsideShadowDom()
andBrowserAction::moveMouseToElement()
actions.
Deprecated
BrowserAction::clickElementAndWaitForReload()
andBrowserAction::evaluateAndWaitForReload()
. As a replacement, please useBrowserAction::clickElement()
orBrowserAction::evaluate()
andBrowserAction::waitForReload()
separately.
v3.2.5
Fixed
- When a child step is nested in the
extract()
method of anHtml
orXml
step, and does not useeach()
as the base, the extracted value is an array with the keys defined in theextract()
call, rather than an array of such arrays as it would be witheach()
as base.