Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WinList::GetContent Method ()

 

Gets the content of the control.

Namespace:   Microsoft.VisualStudio.TestTools.UITesting.WinControls
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

public:
array<String^>^ GetContent()

Return Value

Type: array<System::String^>^

The content of the control.

Example - Verify all the values in the list.

string[] expectedContent = new string[] { "IE", "FireFox", "Safari" }; string[] actualContent = browserList.GetContent(); CollectionAssert.AreEqual(expectedContent, actualContent);

Return to top
Show: