@@ -412,7 +412,7 @@ public void EnableMobileEmulation(string deviceName)
412
412
/// <remarks>Specifying an invalid device name will not throw an exeption, but
413
413
/// will generate an error in Chrome when the driver starts. To unset mobile
414
414
/// emulation, call this method with <see langword="null"/> as the argument.</remarks>
415
- public void EnableMobileDeviceEmulation ( ChromeMobileEmulationDeviceSettings deviceSettings )
415
+ public void EnableMobileEmulation ( ChromeMobileEmulationDeviceSettings deviceSettings )
416
416
{
417
417
this . mobileEmulationDeviceName = null ;
418
418
if ( deviceSettings != null && string . IsNullOrEmpty ( deviceSettings . UserAgent ) )
@@ -423,6 +423,22 @@ public void EnableMobileDeviceEmulation(ChromeMobileEmulationDeviceSettings devi
423
423
this . mobileEmulationDeviceSettings = deviceSettings ;
424
424
}
425
425
426
+ /// <summary>
427
+ /// Allows the Chrome browser to emulate a mobile device.
428
+ /// </summary>
429
+ /// <param name="deviceSettings">The <see cref="ChromeMobileEmulationDeviceSettings"/>
430
+ /// object containing the settings of the device to emulate.</param>
431
+ /// <exception cref="ArgumentException">Thrown if the device settings option does
432
+ /// not have a user agent string set.</exception>
433
+ /// <remarks>Specifying an invalid device name will not throw an exeption, but
434
+ /// will generate an error in Chrome when the driver starts. To unset mobile
435
+ /// emulation, call this method with <see langword="null"/> as the argument.</remarks>
436
+ [ Obsolete ( "Use the EnableMobileEmulation method instead. This method was released in error, and will be removed in a future release." ) ]
437
+ public void EnableMobileDeviceEmulation ( ChromeMobileEmulationDeviceSettings deviceSettings )
438
+ {
439
+ this . EnableMobileEmulation ( deviceSettings ) ;
440
+ }
441
+
426
442
/// <summary>
427
443
/// Adds a type of window that will be listed in the list of window handles
428
444
/// returned by the Chrome driver.
0 commit comments