clearObjectCache
clearObjectCache()
This is an advanced function that may be useful when testing websites that update themselves, replacing some or all HTML elements with new ones. In such cases, it can be helpful to call this function after such an update, to force Squish to refresh its internal object cache by re-reading the web page's DOM tree.
This function clears an internal cache used by Squish for Web so that Squish doesn't have to look up the same objects repeatedly in the browser. After calling this function, all object references (such as those returned by the Object waitForObject(objectOrName) and Object findObject(objectName) functions) are invalid, so new object references must be obtained—for example, using the Object waitForObject(objectOrName) function—for any objects that you want to interact with after the cache is cleared.
See also, the rehook(browserTab) function.
© 2024 The Qt Company Ltd.
Documentation contributions included herein are the copyrights of
their respective owners.
The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.
Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners.