froth-webdriverio-framework 0.1.59 → 0.1.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,19 +31,15 @@ async function getBSSessionDetails(sessiontype,bs_username,bs_pwd) {
31
31
  if (response.ok) {
32
32
  const data = await response.json();
33
33
  console.log('Session Info:', data);
34
- // const details = JSON.parse(data);
35
-
34
+
36
35
  // Accessing the public_url property
37
36
  const publicUrl = data.automation_session.public_url;
38
-
37
+ localStorage.setItem("BS_PUBLIC_URL",publicUrl)
39
38
  console.log("public url : " + publicUrl);
40
39
  // return jsondata;
41
40
  } else if (response.status === 401) { //
42
41
  console.log("Unauthorized, token expired")
43
- // Call login function to obtain a new token
44
- // const newToken = await getLoginToken(localStorage.getItem("SERVICE_USER"), localStorage.getItem("SERVICE_PASSWORD")); // You need to implement the login function
45
- // Retry the request with the new token
46
- // return getExecuitonDetails(frothUrl, newToken, id);
42
+
47
43
  } else {
48
44
  const errorText = await response.text();
49
45
  console.error('Data fetch failed response:', errorText);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "0.1.59",
3
+ "version": "0.1.60",
4
4
  "readme": "WendriverIO Integration with [BrowserStack]",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",