froth-webdriverio-framework 7.0.8 → 7.0.9
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.
|
@@ -98,7 +98,7 @@ async function amend2Browserstack(annotationMessage, level) {
|
|
|
98
98
|
typeof annotationMessage === "string"
|
|
99
99
|
? annotationMessage
|
|
100
100
|
: JSON.stringify(annotationMessage, null, 2);
|
|
101
|
-
|
|
101
|
+
console.log("mesage is full: "+messageStr)
|
|
102
102
|
// 2️⃣ Escape for BrowserStack executor (IMPORTANT)
|
|
103
103
|
let escapedMessage = messageStr
|
|
104
104
|
.replace(/\\/g, "\\\\")
|
|
@@ -131,7 +131,7 @@ async function amend2Browserstack(annotationMessage, level) {
|
|
|
131
131
|
|
|
132
132
|
// 🚀 SEND TO BROWSERSTACK (WDIO-safe)
|
|
133
133
|
if (process.env.PLATFORM === "browserstack") {
|
|
134
|
-
await driver.
|
|
134
|
+
await driver.execute(
|
|
135
135
|
`browserstack_executor: {"action":"annotate","arguments":{"data":"${chunkMessage}","level":"${level}"}}`
|
|
136
136
|
);
|
|
137
137
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "froth-webdriverio-framework",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.9",
|
|
4
4
|
"readme": "WendriverIO Integration with [BrowserStack](https://www.browserstack.com)",
|
|
5
5
|
"description": "Selenium examples for WebdriverIO and BrowserStack App Automate",
|
|
6
6
|
"scripts": {
|