Skip to content

v3.3.0

Choose a tag to compare

@otsch otsch released this 02 Mar 10:58
· 32 commits to main since this release

Added

  • New BrowserActions to use with the postBrowserNavigateHook() 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 a BrowserAction::waitUntilDocumentContainsElement() before it. It works the same in the new BrowserAction::clickInsideShadowDom() and BrowserAction::moveMouseToElement() actions.

Deprecated

  • BrowserAction::clickElementAndWaitForReload() and BrowserAction::evaluateAndWaitForReload(). As a replacement, please use BrowserAction::clickElement() or BrowserAction::evaluate() and BrowserAction::waitForReload() separately.