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
|
-
|
|
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
|
-
|
|
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);
|