Index: tools/testing/dart/browser_controller.dart |
diff --git a/tools/testing/dart/browser_controller.dart b/tools/testing/dart/browser_controller.dart |
index 9f943cd8fd080059c03eacb4ac32aefb9c540508..9ffaa05566b6998143fe2cd29ff0e4a7aa003bbe 100644 |
--- a/tools/testing/dart/browser_controller.dart |
+++ b/tools/testing/dart/browser_controller.dart |
@@ -1907,7 +1907,13 @@ Future captureInternetExplorerScreenshot(String message) async { |
final screenshotFile = |
Platform.script.resolve('../$screenshotName').toFilePath(); |
- final args = [powerShellScript, screenshotFile]; |
+ final args = [ |
+ '-ExecutionPolicy', |
+ 'ByPass', |
+ '-File', |
+ powerShellScript, |
+ screenshotFile |
+ ]; |
final ProcessResult result = |
await Process.run('powershell.exe', args, runInShell: true); |
if (result.exitCode != 0) { |