You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some circumstances, when the browser lifecycle is handled externally to xk6-browser extension, we should be able to transition from Browser.Launch to Browser.Connect transparently. This is done to increase compatibility for scripts written to run "locally", where the Browser.Launch method will be called and the browser is started by xk6-browser itself; and for cases on which we want to run the same script, maintaining the launch method usage and minimizing changes in the script, but in an environment where the browser is handled externally.
The initial idea to detect when to perform this translation is through the existence of an specific environment variable. We should consider therefore the deprecation of the current cloud environment variable.
Additionally and as part of this issue we should consider how will the WS URL be handled by the environment. Will it be defined in the environment variable? Or will the environment variable define an endpoint that will possibly trigger the external procedure to start up the browser and then return its WS URL? Similarly we should consider a hook action when closing the browser connection which could be useful for the environment to handle the actual process closing procedure and cleanup.
The text was updated successfully, but these errors were encountered:
In some circumstances, when the browser lifecycle is handled externally to xk6-browser extension, we should be able to transition from
Browser.Launch
toBrowser.Connect
transparently. This is done to increase compatibility for scripts written to run "locally", where theBrowser.Launch
method will be called and the browser is started by xk6-browser itself; and for cases on which we want to run the same script, maintaining thelaunch
method usage and minimizing changes in the script, but in an environment where the browser is handled externally.The initial idea to detect when to perform this translation is through the existence of an specific environment variable. We should consider therefore the deprecation of the current cloud environment variable.
Additionally and as part of this issue we should consider how will the WS URL be handled by the environment. Will it be defined in the environment variable? Or will the environment variable define an endpoint that will possibly trigger the external procedure to start up the browser and then return its WS URL? Similarly we should consider a hook action when closing the browser connection which could be useful for the environment to handle the actual process closing procedure and cleanup.
The text was updated successfully, but these errors were encountered: