startBrowser

startBrowser(url)

startBrowser(url, timeout)

startBrowser()

startBrowser(timeout)

This function starts the browser and - if specified - loads the website identified by the url parameter. If there is an error during the startup or loading of the page an error will be raised. An error will also be raised if the function is called while a browser is already running. You can query whether a browser is already running using the Boolean isBrowserOpen() function.

The function takes an optional timeout, specified in milliseconds. Squish for Web will wait the specified time for the browser to start and load the given url. After the time has elapsed an error is generated. If this parameter is not specified the Maximum Startup Timeout value will be used.

© 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