You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/test/using-html5-controls-in-coded-ui-tests.md
+6-65Lines changed: 6 additions & 65 deletions
Original file line number
Diff line number
Diff line change
@@ -26,18 +26,7 @@ Coded UI tests include support for some of the HTML5 controls that are included
26
26
> If you create a coded UI test in Internet Explorer 10, it might not run using Internet Explorer 9 or Internet Explorer 8. This is because Internet Explorer 10 includes HTML5 controls such as Audio, Video, ProgressBar and Slider. These HTML5 controls are not recognized by Internet Explorer 9, or Internet Explorer 8. Likewise, your coded UI test using Internet Explorer 9 might include some HTML5 controls that also will not be recognized by Internet Explorer 8.
27
27
28
28
29
-
## Supported HTML5 Controls
30
-
Coded UI tests include support for record, playback, and validation of the following HTML5 controls:
@@ -51,27 +40,7 @@ Coded UI tests include support for some of the HTML5 controls that are included
51
40
|**Unmute audio**<br /><br /> Directly from control, or from controls context menu.|Unmute \<name> Audio|HtmlAudio.Unmute()|
52
41
|**Change volume of audio**|Set volume of \<name> Audio to 79%|HtmlAudio.SetVolume(float)|
53
42
54
-
The following properties are available for HtmlAudio and you can add an assertion on all of them:
55
-
56
-
```HTML
57
-
string AutoPlay
58
-
string Controls
59
-
string CurrentSrc
60
-
string CurrentTime
61
-
string CurrentTimeAsString
62
-
string Duration
63
-
string DurationAsString
64
-
string Ended
65
-
string Loop
66
-
string Muted
67
-
string Paused
68
-
string PlaybackRate
69
-
string ReadyState
70
-
string Seeking
71
-
string Src
72
-
string Volume
73
-
74
-
```
43
+
See [HTMLAudioElement](https://developer.mozilla.org/docs/Web/API/HTMLAudioElement) for a list of properties on which you can add an assertion.
75
44
76
45
**Search properties:** The search properties for `HtmlAudio` are `Id`, `Name` and `Title`.
77
46
@@ -81,7 +50,7 @@ string Volume
81
50
> The amount of time for Seek and Pause can be significant. During playback, the coded UI test will wait until the specified time in `(TimeSpan)` before Pausing the audio. If by some special circumstance, the specified time has passed before hitting the Pause command, an exception will be thrown.
82
51
83
52
84
-
### <aname="UsingHTML5ControlsCodedUITestsVideo"></a> Video Control
53
+
## Video Control
85
54
**Video control:** Actions on the HTML5 Video control are correctly recorded and played back.
86
55
87
56

@@ -95,14 +64,7 @@ string Volume
95
64
|**Unmute video**<br /><br /> Directly from control, or from controls context menu.|Unmute \<name> Video|HtmlVideo.Unmute()|
96
65
|**Change volume of video**|Set volume of \<name> Video to 79%||
97
66
98
-
All the properties of HtmlAudio are available for HtmlVideo. In addition, the following three properties are also available. Assertion can be added on all of them.
99
-
100
-
```HTML
101
-
string Poster
102
-
string VideoHeight
103
-
string VideoWidth
104
-
105
-
```
67
+
See [HTMLVideoElement](https://developer.mozilla.org/docs/Web/HTML/Element/video) for a list of properties on which you can add an assertion.
106
68
107
69
**Search properties:** The search properties for `HtmlVideo` are `Id`, `Name` and `Title`.
108
70
@@ -111,29 +73,8 @@ string VideoWidth
111
73
> [!NOTE]
112
74
> If you rewind or fast forward the video using -30s or +30s labels, this will be aggregated to seek to the appropriate time.
**ProgressBar control:** The ProgressBar is a non-interactable control. You can add assertions on the `Value` and `Max` properties of this control.
76
+
## ProgressBar
77
+
**ProgressBar control:** The ProgressBar is a non-interactable control. You can add assertions on the `Value` and `Max` properties of this control. For more information, see [HTMLProgressElement](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress).
0 commit comments