hasContext

Boolean hasContext(context)

Note: This function is deprecated unless you disabled tab support. Consider using hasFrameContext when you want to verify whether a given frame exists or waitForObject with a qualified name that identifies a particular tab if you want to check that the tab exists.

This function returns true if the window with a URL that matches the context is open and can be accessed by the test script; otherwise it returns false. A context string is a page's "base location"—this includes any parent locations necessary to precisely identify the page (for example, if the page is actually a frame or iframe element). (See also, Boolean setContext(context), and waitForContextExists(context).)

© 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.

Search Results