-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
509247a
commit 3284bd6
Showing
12 changed files
with
634 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace OpenQA.Selenium.Appium.Enums | ||
{ | ||
public enum ClipboardContentType | ||
{ | ||
PlainText, | ||
Image, | ||
Url | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
using System.Drawing; | ||
using OpenQA.Selenium.Appium.Enums; | ||
|
||
namespace OpenQA.Selenium.Appium.Interfaces | ||
{ | ||
public interface IHasClipboard | ||
{ | ||
#region base methods | ||
|
||
/// <summary> | ||
/// Sets the content to the clipboard | ||
/// </summary> | ||
/// <param name="contentType"></param> | ||
/// <param name="base64Content"></param> | ||
void SetClipboard(ClipboardContentType contentType, string base64Content); | ||
|
||
/// <summary> | ||
/// Get the content of the clipboard. | ||
/// </summary> | ||
/// <param name="contentType"></param> | ||
/// <remarks>Android supports plaintext only</remarks> | ||
/// <returns>The content of the clipboard as base64-encoded string or an empty string if the clipboard is empty</returns> | ||
string GetClipboard(ClipboardContentType contentType); | ||
|
||
#endregion | ||
|
||
/// <summary> | ||
/// Sets text to the clipboard | ||
/// </summary> | ||
/// <param name="textContent"></param> | ||
/// <param name="label">For Android only - A user visible label for the clipboard content.</param> | ||
void SetClipboardText(string textContent, string label); | ||
|
||
/// <summary> | ||
/// Get the plaintext content of the clipboard. | ||
/// </summary> | ||
/// <remarks>Android supports plaintext only</remarks> | ||
/// <returns>The string content of the clipboard or an empty string if the clipboard is empty</returns> | ||
string GetClipboardText(); | ||
|
||
/// <summary> | ||
/// Sets the url string to the clipboard | ||
/// </summary> | ||
/// <param name="url"></param> | ||
void SetClipboardUrl(string url); | ||
|
||
/// <summary> | ||
/// Gets the url string from the clipboard | ||
/// </summary> | ||
/// <returns>The url string content of the clipboard or an empty string if the clipboard is empty</returns> | ||
string GetClipboardUrl(); | ||
|
||
/// <summary> | ||
/// Sets the image to the clipboard | ||
/// </summary> | ||
/// <param name="image"></param> | ||
void SetClipboardImage(Image image); | ||
|
||
/// <summary> | ||
/// Gets the image from the clipboard | ||
/// </summary> | ||
/// <returns>The image content of the clipboard as base64-encoded string or an empty string the clipboard is empty</returns> | ||
Image GetClipboardImage(); | ||
|
||
|
||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
3284bd6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
May I know in which version this fix will be released. I am not seeing these changes in 4.0.0.4 Beta version.
Thanks,
Praveen