다음을 통해 공유


ExtractAttributeValue.AttributeName 속성

추출하려는 값이 있는 특성의 이름을 나타내는 값을 가져오거나 설정합니다.

네임스페이스:  Microsoft.VisualStudio.TestTools.WebTesting.Rules
어셈블리:  Microsoft.VisualStudio.QualityTools.WebTestFramework(Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

구문

‘선언
Public Property AttributeName As String
public string AttributeName { get; set; }
public:
property String^ AttributeName {
    String^ get ();
    void set (String^ value);
}
member AttributeName : string with get, set
function get AttributeName () : String 
function set AttributeName (value : String)

속성 값

형식: String
특성의 이름입니다.

설명

추출할 값이 들어 있는 특성을 식별하는 데 사용됩니다. 다음 HTML을 참고하십시오.

<input name="MyTextBox" type="text" id="TextBox1" />

<input type="submit" name="Button1" value="Button" id="Button1" />

id 특성 값을 추출하려면 TagName 속성을 input으로, AttributeName 속성을 id로 설정합니다.

이렇게 하면 처음으로 발견되는 input 태그의 id 값이 TextBox1이므로 TextBox1 값이 반환됩니다. 두 번째 태그에서 id를 추출하려면 MatchAttributeNameMatchAttributeValue를 참조하십시오.

.NET Framework 보안

참고 항목

참조

ExtractAttributeValue 클래스

Microsoft.VisualStudio.TestTools.WebTesting.Rules 네임스페이스