HtmlMedia Class
Represents a Html media control.
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
Microsoft.VisualStudio.TestTools.UITesting::UITestControl
Microsoft.VisualStudio.TestTools.UITesting.HtmlControls::HtmlControl
Microsoft.VisualStudio.TestTools.UITesting.HtmlControls::HtmlMedia
Microsoft.VisualStudio.TestTools.UITesting.HtmlControls::HtmlAudio
Microsoft.VisualStudio.TestTools.UITesting.HtmlControls::HtmlVideo
| Name | Description | |
|---|---|---|
![]() | HtmlMedia() | Creates a new instance of HtmlMedia class. |
![]() | HtmlMedia(UITestControl^) |
| Name | Description | |
|---|---|---|
![]() | AccessKey | Gets the value of the AccessKey attribute of this control.(Inherited from HtmlControl.) |
![]() | AutoPlay | Gets the value of autoplay attribute of the media. |
![]() | BoundingRectangle | Gets the Bounding rectangle for this control.(Inherited from UITestControl.) |
![]() | Class | Gets the value of the Class attribute of this control.(Inherited from HtmlControl.) |
![]() | ClassName | Gets the class name for this control.(Inherited from UITestControl.) |
![]() | Container | Gets or sets the container of this UITestControl.(Inherited from UITestControl.) |
![]() | ControlDefinition | Gets the definition of the control in the HTML page.(Inherited from HtmlControl.) |
![]() | Controls | Gets the value of controls attribute of the media. |
![]() | ControlType | Gets the type of the UI Control.(Inherited from UITestControl.) |
![]() | CurrentSrc | Gets the current source of the media. |
![]() | CurrentTime | Gets the current playing time of the media. |
![]() | CurrentTimeAsString | Gets the current playing time of the media as string. |
![]() | Duration | Gets the duration of the media. |
![]() | DurationAsString | Gets the duration of the media as string. |
![]() | Enabled | Gets a value that indicates whether this control is enabled.(Inherited from UITestControl.) |
![]() | Ended | Gets the ended state of the media. |
![]() | Exists | Gets a value that indicates whether this control exists on the user interface.(Inherited from UITestControl.) |
![]() | FilterProperties | Gets the property-value pair collection that is used to disambiguate a control.(Inherited from UITestControl.) |
![]() | FriendlyName | Gets the name of this control to use in the user interface.(Inherited from UITestControl.) |
![]() | HasFocus | Gets a value that indicates whether this control currently has the focus in the user interface.(Inherited from UITestControl.) |
![]() | Height | Gets height of the control.(Inherited from UITestControl.) |
![]() | HelpText | Gets the value of the HelpText attribute of this control.(Inherited from HtmlControl.) |
![]() | Id | Gets the value of the ID attribute of this control.(Inherited from HtmlControl.) |
![]() | InnerText | Gets the text content of this control.(Inherited from HtmlControl.) |
![]() | IsTopParent | Gets a value that indicates whether this control is the top-level element.(Inherited from UITestControl.) |
![]() | Left | Gets the x-coordinate of the left edge of the control.(Inherited from UITestControl.) |
![]() | Loop | Gets the value of loop attribute of the media. |
![]() | Muted | Gets the muted state of the media. |
![]() | Name | Gets the name of this control.(Inherited from UITestControl.) |
![]() | NativeElement | Gets the native technology element that corresponds to this control.(Inherited from UITestControl.) |
![]() | Paused | Gets the paused state of the media. |
![]() | PlaybackRate | Gets the playback rate of the media. |
![]() | ReadyState | Gets the ready state value of the media. |
![]() | SearchConfigurations | Gets or sets search configurations.(Inherited from UITestControl.) |
![]() | SearchProperties | Gets the property-value pair collection that is used to identify a control.(Inherited from UITestControl.) |
![]() | SearchPropertiesSetExplicitly | Gets a value that indicates whether the search properties for this control were set by the user in the user interface.(Inherited from UITestControl.) |
![]() | Seeking | Gets the seeking state of the media. |
![]() | Src | Gets the value of src attribute of the media. |
![]() | State | Gets the state of the control.(Inherited from UITestControl.) |
![]() | TagInstance | Gets the index of the control in the collection of controls on the page that has the same tag name.(Inherited from HtmlControl.) |
![]() | TagName | Gets the tag name of this control.(Inherited from HtmlControl.) |
![]() | TechnologyName | Gets or sets the technology framework that implements this control.(Inherited from UITestControl.) |
![]() | Title | Gets the value of the Title attribute of this control.(Inherited from HtmlControl.) |
![]() | Top | Gets the x-coordinate of the top edge of the control.(Inherited from UITestControl.) |
![]() | TopParent | Gets the top-level parent of this control.(Inherited from UITestControl.) |
![]() | Type | Gets the value of the Type attribute of this control.(Inherited from HtmlControl.) |
![]() | ValueAttribute | Gets the value of the Value attribute of this control.(Inherited from HtmlControl.) |
![]() | Volume | Gets the current volume of the media. |
![]() | Width | Gets width of the control.(Inherited from UITestControl.) |
![]() | WindowHandle | Gets the window handle for this control.(Inherited from UITestControl.) |
![]() | WindowTitles | Gets a collection of the window titles of the top-level window. (Inherited from UITestControl.) |
| Name | Description | |
|---|---|---|
![]() | CaptureImage() | Captures the image of the UITestControl. The UITestControl must be present on the screen.(Inherited from UITestControl.) |
![]() | CopyFrom(UITestControl^) | Creates a UITestControl object that references the same element on the user interface as the original UITestControl.(Inherited from UITestControl.) |
![]() | DrawHighlight() | Highlights the control.(Inherited from UITestControl.) |
![]() | EnsureClickable() | Scrolls the user interface to make sure that the control is clickable.(Inherited from UITestControl.) |
![]() | EnsureClickable(Point) | Scrolls the user interface to a specific point to make sure that the control is clickable.(Inherited from UITestControl.) |
![]() | Equals(Object^) | Determines whether the specified UITestControl is equal to the current UITestControl.(Inherited from UITestControl.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | Find() | Finds the UITestControl.(Inherited from UITestControl.) |
![]() | FindMatchingControls() | Returns a collection of all UITestControls that match the specified SearchProperties and FilterProperties.(Inherited from UITestControl.) |
![]() | GetChildren() | Returns a collection of all first-level children of the current UITestControl.(Inherited from UITestControl.) |
![]() | GetClickablePoint() | Returns a clickable point on the control.(Inherited from UITestControl.) |
![]() | GetHashCode() | Returns a unique value that represents the current UITestControl instance.(Inherited from UITestControl.) |
![]() | GetParent() | Returns the parent of the current UITestControl.(Inherited from UITestControl.) |
![]() | GetProperty(String^) | Gets the value of the specified property.(Inherited from UITestControl.) |
![]() | GetType() | (Inherited from Object.) |
![]() | GetUITestControlsForSearch() | Returns an array of UITestControl objects that will be used for searching.(Inherited from UITestControl.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | Mute() | Mutes the media. |
![]() | Pause() | Pauses the media. |
![]() | Pause(TimeSpan) | Pauses media at the specified time. |
![]() | Play() | Plays the media. |
![]() | Play(TimeSpan) | Plays media from the specified start time. |
![]() | Seek(TimeSpan) | Seeks media to the specified time. |
![]() | SetFocus() | Sets the keyboard focus to the UITestControl.(Inherited from UITestControl.) |
![]() | SetProperty(String^, Object^) | Sets the value of a given property.(Inherited from UITestControl.) |
![]() | SetVolume(Single) | Sets the volume of the media. |
![]() | ToString() | Returns a String that represents the current UITestControl.(Inherited from UITestControl.) |
![]() | TryFind() | Tries to find the control on the user interface.(Inherited from UITestControl.) |
![]() | TryGetClickablePoint(Point) | Returns a clickable point in the UITestControl. If the control is not clickable, this method returns false.(Inherited from UITestControl.) |
![]() | Unmute() | Unmutes the media. |
![]() | WaitForControlCondition(Predicate<UITestControl^>^) | Blocks the current thread until this control meets the specified condition, or until the default time-out expires.(Inherited from UITestControl.) |
![]() | WaitForControlCondition(Predicate<UITestControl^>^, Int32) | Blocks the current thread until this control meets the specified condition, or until the specified time-out expires.(Inherited from UITestControl.) |
![]() | WaitForControlEnabled() | Blocks the current thread until this control is enabled, or until the default time-out expires.(Inherited from UITestControl.) |
![]() | WaitForControlEnabled(Int32) | Blocks the current thread until this control is enabled, or until the specified time-out expires.(Inherited from UITestControl.) |
![]() | WaitForControlExist() | Blocks the current thread until this control occurs in the user interface, or until the default time-out expires.(Inherited from UITestControl.) |
![]() | WaitForControlExist(Int32) | Blocks the current thread until this control occurs in the user interface, or until the specified time-out expires.(Inherited from UITestControl.) |
![]() | WaitForControlNotExist() | Blocks the current thread until this control no longer is in the user interface, or until the default time-out expires.(Inherited from UITestControl.) |
![]() | WaitForControlNotExist(Int32) | Blocks the current thread until this control no longer occurs in the user interface, or until the specified time-out expires.(Inherited from UITestControl.) |
![]() | WaitForControlPropertyEqual(String^, Object^) | Blocks the current thread until the specified property of this control is equal to the specified value, or until the default time-out expires.(Inherited from UITestControl.) |
![]() | WaitForControlPropertyEqual(String^, Object^, Int32) | Blocks the current thread until the specified property of this control is equal to the specified value, or until the specified time-out expires.(Inherited from UITestControl.) |
![]() | WaitForControlPropertyNotEqual(String^, Object^) | Blocks the current thread until the specified property of this control is not equal to the specified value, or until the default time-out expires.(Inherited from UITestControl.) |
![]() | WaitForControlPropertyNotEqual(String^, Object^, Int32) | Blocks the current thread until the specified property of this control is not equal to the specified value, or until the specified time-out expires.(Inherited from UITestControl.) |
![]() | WaitForControlReady() | Blocks the current thread until this control is ready to receive mouse or keyboard input, or until the default time-out expires.(Inherited from UITestControl.) |
![]() | WaitForControlReady(Int32) | Blocks the current thread until this control is ready to receive mouse or keyboard input, or until the specified time-out expires.(Inherited from UITestControl.) |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



