@@ -65,6 +65,8 @@ public static string GetDriverPath(this UITestContext context)
6565 return Path . Join ( service . DriverServicePath , service . DriverServiceExecutableName ) ;
6666 }
6767
68+ #region Methods related to executing UI tests written in JavaScript. All of this is obsolete.
69+
6870 private static ( string WorkingDirectory , string [ ] Arguments ) GetExecuteJavaScriptTestPaths (
6971 this UITestContext context ,
7072 string scriptPath ,
@@ -101,7 +103,7 @@ static string GetShorterPath(string basePath, string path)
101103 }
102104
103105 // This uses a different casing of "JavaScript" to avoid breaking backwards compatibility.
104- [ Obsolete ( $ "Use { nameof ( ExecuteJavaScriptTestAsync ) } instead .") ]
106+ [ Obsolete ( "Tests written in JavaScript are no longer supported .") ]
105107 public static Task ExecuteJavascriptTestAsync (
106108 this UITestContext context ,
107109 string scriptPath ,
@@ -115,6 +117,7 @@ public static Task ExecuteJavascriptTestAsync(
115117 /// <param name="testOutputHelper">Needed to redirect the <c>node</c> output into the test logs.</param>
116118 /// <param name="scriptPath">The JavaScript source file to execute using <c>node</c>.</param>
117119 /// <param name="workingDirectory">The working directory where <c>node</c> is executed from.</param>
120+ [ Obsolete ( "Tests written in JavaScript are no longer supported." ) ]
118121 public static async Task ExecuteJavaScriptTestAsync (
119122 this UITestContext context ,
120123 ITestOutputHelper testOutputHelper ,
@@ -155,6 +158,7 @@ await Cli.Wrap(command)
155158 /// </summary>
156159 /// <param name="scriptPath">The relative or absolute path pointing to the test script file.</param>
157160 /// <param name="workingDirectory">The path where the test script should be executed, will be converted to absolute.</param>
161+ [ Obsolete ( "Tests written in JavaScript are no longer supported." ) ]
158162 public static Task SwitchToInteractiveWithJavaScriptTestInfoAsync (
159163 this UITestContext context ,
160164 string scriptPath ,
@@ -178,6 +182,7 @@ public static Task SwitchToInteractiveWithJavaScriptTestInfoAsync(
178182 /// relative path based on the temp directory to conserve path length because long paths can be a problem in some
179183 /// operating systems.
180184 /// </param>
185+ [ Obsolete ( "Tests written in JavaScript are no longer supported." ) ]
181186 public static async Task SetupSeleniumAndExecuteJavaScriptTestAsync (
182187 this UITestContext context ,
183188 ITestOutputHelper testOutputHelper ,
@@ -193,6 +198,7 @@ public static async Task SetupSeleniumAndExecuteJavaScriptTestAsync(
193198 /// Creates a blank Node.js project in the current test session's <see cref="DirectoryPaths.Temp"/> directory and
194199 /// installs the provided NPM <paramref name="dependencies"/> using <c>pnpm</c>.
195200 /// </summary>
201+ [ Obsolete ( "Tests written in JavaScript are no longer supported." ) ]
196202 public static async Task SetupNodeDependenciesAsync (
197203 this UITestContext context ,
198204 ITestOutputHelper helper ,
@@ -220,6 +226,7 @@ await Cli.Wrap("pnpm")
220226 /// Creates a blank Node.js project in the current test session's <see cref="DirectoryPaths.Temp"/> directory, then
221227 /// installs <c>selenium-webdriver</c> and any additional NPM dependencies using <c>pnpm</c>.
222228 /// </summary>
229+ [ Obsolete ( "Tests written in JavaScript are no longer supported." ) ]
223230 public static Task SetupNodeSeleniumAsync (
224231 this UITestContext context ,
225232 ITestOutputHelper helper ,
@@ -246,4 +253,6 @@ public static Task SetupNodeSeleniumAsync(
246253 workingDirectory ,
247254 [ $ "selenium-webdriver@{ seleniumWebDriverVersion } ", .. otherDependencies ] ) ;
248255 }
256+
257+ #endregion
249258}
0 commit comments