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")) {
30
+
if (title.equals("BrowserStack Local")) {
35
31
// 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
if (title.equals("BrowserStack - Google Search")) {
51
-
// 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
52
-
markTestStatus("passed", "Title matched", page);
53
-
} else {
54
-
markTestStatus("failed", "Title did not match", page);
55
-
}
43
+
page.navigate("http://localhost:45691");
44
+
page.waitForFunction("document" +
45
+
".querySelector(\"body\")" +
46
+
".innerText" +
47
+
".includes(\"This is an internal server for BrowserStack Local\")");
48
+
49
+
markTestStatus("passed", "Local is up and running", page);
56
50
} catch (Exceptionerr) {
57
-
markTestStatus("failed", err.getMessage(), page);
51
+
markTestStatus("failed", "BrowserStack Local binary is not running", page);
# 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
# 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
47
-
mark_test_status("passed", "Title matched", page)
48
-
else:
49
-
mark_test_status("failed", "Title did not match", page)
0 commit comments