Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Appium.Net/Appium/AppiumCommandExecutionHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public static void SetClipboard(IExecuteMethod executeMethod, ClipboardContentTy
{
case ClipboardContentType.Image:
case ClipboardContentType.Url:
if (executeMethod.GetType().GetGenericTypeDefinition() == typeof(AndroidDriver))
if (executeMethod.GetType() == typeof(AndroidDriver))
{
throw new NotImplementedException(
$"Android only supports contentType: {nameof(ClipboardContentType.PlainText)}");
Expand All @@ -118,7 +118,7 @@ public static string GetClipboard(IExecuteMethod executeMethod, ClipboardContent
{
case ClipboardContentType.Image:
case ClipboardContentType.Url:
if (executeMethod.GetType().GetGenericTypeDefinition() == typeof(AndroidDriver))
if (executeMethod.GetType() == typeof(AndroidDriver))
{
throw new NotImplementedException(
$"Android only supports contentType: {nameof(ClipboardContentType.PlainText)}");
Expand Down