This reverts commit 32000db52e.
This commit is contained in:
committed by
GitHub
parent
32000db52e
commit
09cca73aee
@@ -510,7 +510,7 @@ class IOSDevice extends Device {
|
||||
|
||||
@override
|
||||
Future<void> takeScreenshot(File outputFile) async {
|
||||
await _iMobileDevice.takeScreenshot(outputFile, id);
|
||||
await _iMobileDevice.takeScreenshot(outputFile);
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -832,8 +832,8 @@ class IOSDevicePortForwarder extends DevicePortForwarder {
|
||||
process = await _processUtils.start(
|
||||
<String>[
|
||||
_iproxyPath,
|
||||
'$hostPort:$devicePort',
|
||||
'--udid',
|
||||
hostPort.toString(),
|
||||
devicePort.toString(),
|
||||
_id,
|
||||
],
|
||||
environment: Map<String, String>.fromEntries(
|
||||
|
||||
@@ -66,13 +66,11 @@ class IMobileDevice {
|
||||
}
|
||||
|
||||
/// Captures a screenshot to the specified outputFile.
|
||||
Future<void> takeScreenshot(File outputFile, String deviceID) {
|
||||
Future<void> takeScreenshot(File outputFile) {
|
||||
return _processUtils.run(
|
||||
<String>[
|
||||
_idevicescreenshotPath,
|
||||
outputFile.path,
|
||||
'--udid',
|
||||
deviceID,
|
||||
],
|
||||
throwOnError: true,
|
||||
environment: Map<String, String>.fromEntries(
|
||||
|
||||
Reference in New Issue
Block a user