message: Retry search text for any type of error
diff: @@ -130,18 +130,17 @@ async function waitForPageWithText(
  );
  break;
  } catch (error) {
  - if (error instanceof browser.assert.AssertionError) {
  findTextAttempts++;
  if (findTextAttempts <= maxFindTextAttempts) {
  await browser.visit(path);
  await new Promise(resolve => setTimeout(resolve, intervalMs));
  continue
  - }
  - }
  + } else {
  throw error;
  }
  }
  }
  +}
  function print(msg) {
  return process.stdout.write(`${msg}\n`);
  