You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (title.equals("BrowserStack - Google Search")) {
42
-
// following line of code is responsible for marking the status of the test on BrowserStack as 'passed'. You can use this code in your after hook after each test
result = page.evaluate("_ => {}", "browserstack_executor: { \"action\": \"setSessionStatus\", \"arguments\": { \"status\": \"failed\", \"reason\": \"Title did not matched\"}}");
41
+
if (title.equals("BrowserStack - Google Search")) {
42
+
// following line of code is responsible for marking the status of the test on BrowserStack as 'passed'. You can use this code in your after hook after each test
43
+
markTestStatus("passed", "Title matched", page);
44
+
} else {
45
+
markTestStatus("failed", "Title did not match", page);
if (title.equals("BrowserStack - Google Search")) {
43
-
// following line of code is responsible for marking the status of the test on BrowserStack as 'passed'. You can use this code in your after hook after each test
result = page.evaluate("_ => {}", "browserstack_executor: { \"action\": \"setSessionStatus\", \"arguments\": { \"status\": \"failed\", \"reason\": \"Title did not matched\"}}");
42
+
if (title.equals("BrowserStack - Google Search")) {
43
+
// following line of code is responsible for marking the status of the test on BrowserStack as 'passed'. You can use this code in your after hook after each test
44
+
markTestStatus("passed", "Title matched", page);
45
+
} else {
46
+
markTestStatus("passed", "Title did not match", page);
0 commit comments