Skip to content

Commit

Permalink
[web] increase chromedriver logging level (#147687)
Browse files Browse the repository at this point in the history
This can help debugging #146189
  • Loading branch information
yjbanov committed May 2, 2024
1 parent da05147 commit 1d0e798
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dev/bots/suite_runners/run_web_tests.dart
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ class WebTestsSuite {
// and it doesn't use most of startCommand's features; we could simplify this a lot by
// inlining the relevant parts of startCommand here.
'chromedriver',
<String>['--port=4444'],
<String>['--port=4444', '--log-level=INFO', '--enable-chrome-logs'],
);
while (!await _isChromeDriverRunning()) {
await Future<void>.delayed(const Duration(milliseconds: 100));
Expand All @@ -744,7 +744,8 @@ class WebTestsSuite {
final Uri chromeDriverUrl = Uri.parse('http://localhost:4444/status');
final HttpClientRequest request = await client.getUrl(chromeDriverUrl);
final HttpClientResponse response = await request.close();
final Map<String, dynamic> webDriverStatus = json.decode(await response.transform(utf8.decoder).join()) as Map<String, dynamic>;
final String responseString = await response.transform(utf8.decoder).join();
final Map<String, dynamic> webDriverStatus = json.decode(responseString) as Map<String, dynamic>;
client.close();
final bool webDriverReady = (webDriverStatus['value'] as Map<String, dynamic>)['ready'] as bool;
if (!webDriverReady) {
Expand Down

0 comments on commit 1d0e798

Please sign in to comment.