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: dotnet/src/webdriver/ITargetLocator.cs
+8
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,10 @@
17
17
// under the License.
18
18
// </copyright>
19
19
20
+
#nullable enable
21
+
22
+
usingSystem;
23
+
20
24
namespaceOpenQA.Selenium
21
25
{
22
26
/// <summary>
@@ -38,6 +42,7 @@ public interface ITargetLocator
38
42
/// <param name="frameName">The name of the frame to select.</param>
39
43
/// <returns>An <see cref="IWebDriver"/> instance focused on the specified frame.</returns>
40
44
/// <exception cref="NoSuchFrameException">If the frame cannot be found.</exception>
45
+
/// <exception cref="ArgumentNullException">If <paramref name="frameName"/> is <see langword="null"/>.</exception>
41
46
IWebDriverFrame(stringframeName);
42
47
43
48
/// <summary>
@@ -47,6 +52,8 @@ public interface ITargetLocator
47
52
/// <returns>An <see cref="IWebDriver"/> instance focused on the specified frame.</returns>
48
53
/// <exception cref="NoSuchFrameException">If the element is neither a FRAME nor an IFRAME element.</exception>
49
54
/// <exception cref="StaleElementReferenceException">If the element is no longer valid.</exception>
55
+
/// <exception cref="ArgumentNullException">If <paramref name="frameElement"/> is <see langword="null"/>.</exception>
56
+
/// <exception cref="ArgumentException">If <paramref name="frameElement"/> cannot be converted to an <see cref="IWebDriverObjectReference"/>.</exception>
50
57
IWebDriverFrame(IWebElementframeElement);
51
58
52
59
/// <summary>
@@ -61,6 +68,7 @@ public interface ITargetLocator
61
68
/// <param name="windowName">The name of the window to select.</param>
62
69
/// <returns>An <see cref="IWebDriver"/> instance focused on the given window.</returns>
63
70
/// <exception cref="NoSuchWindowException">If the window cannot be found.</exception>
71
+
/// <exception cref="ArgumentNullException">If <paramref name="windowName"/> is <see langword="null"/>.</exception>
@@ -59,6 +62,7 @@ public IWebDriver Frame(int frameIndex)
59
62
/// </summary>
60
63
/// <param name="frameName">name of the frame</param>
61
64
/// <returns>A WebDriver instance that is currently in use</returns>
65
+
/// <exception cref="ArgumentNullException">If <paramref name="frameName"/> is <see langword="null"/>.</exception>
62
66
publicIWebDriverFrame(stringframeName)
63
67
{
64
68
if(frameName==null)
@@ -85,26 +89,27 @@ public IWebDriver Frame(string frameName)
85
89
/// </summary>
86
90
/// <param name="frameElement">a previously found FRAME or IFRAME element.</param>
87
91
/// <returns>A WebDriver instance that is currently in use.</returns>
92
+
/// <exception cref="ArgumentNullException">If <paramref name="frameElement"/> is <see langword="null"/>.</exception>
93
+
/// <exception cref="ArgumentException">If <paramref name="frameElement"/> cannot be converted to an <see cref="IWebDriverObjectReference"/>.</exception>
88
94
publicIWebDriverFrame(IWebElementframeElement)
89
95
{
90
96
if(frameElement==null)
91
97
{
92
98
thrownewArgumentNullException(nameof(frameElement),"Frame element cannot be null");
0 commit comments