As an example with LT. The default reporter logs the following info once the test is started. I would like to get the session URL from t object(do not want to implement custom reporter only for that). Is it possible?
- Safari 17.1 / iOS 17.1 ( https://automation.lambdatest.com/logs/?sessionID=some-id )
You can obtain the
BrowserStack/LambdaTestsession URL from thetobject witht.testRun.browserConnection.userAgentand use a RegExp to extract necessary information from the string.However, It's not part of public API and can be changed at any time. Please use it with caution.