How to start LT tunnel programmatically using WebdriverIO Framework?

Can I start LT tunnel programmatically using WebdriverIO Framework?

Hi Aaron,

We have a wdio-lambdatest-service that you can install via npm.

You can simply add the service dependency within your conf.js file along with all other capabilities and set the tunnel:true to start the tunnel. Please ref below:

 services: [
    [
      "lambdatest",
      {
        tunnel: true,
        lambdatestOpts: {
          logfile: "tunnel.log",
          tunnelName: "Tunnel1",
        },
      },
    ],
  ],