Delen via


SendKeysAction.IsActionOnProtectedElement Method

Returns a value that indicates whether the associated element is protected.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Common
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Common (in Microsoft.VisualStudio.TestTools.UITest.Common.dll)

Syntax

'Declaration
Public Function IsActionOnProtectedElement As Boolean
public bool IsActionOnProtectedElement()
public:
bool IsActionOnProtectedElement()
member IsActionOnProtectedElement : unit -> bool
public function IsActionOnProtectedElement() : boolean

Return Value

Type: Boolean
true if the value is encrypted or the IsEncoded property is true, or if the element is a password field; false if the text is equivalent to a Tab, Enter, or Escape key.

.NET Framework Security

See Also

Reference

SendKeysAction Class

Microsoft.VisualStudio.TestTools.UITest.Common Namespace

IsEncoded

Keys