"Fossies" - the Fresh Open Source Software Archive 
Member "selenium-selenium-4.8.1/dotnet/test/common/CustomDriverConfigs/DevChannelEdgeDriver.cs" (17 Feb 2023, 1487 Bytes) of package /linux/www/selenium-selenium-4.8.1.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C# source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using System.Threading.Tasks;
6
7 namespace OpenQA.Selenium.Edge
8 {
9 public class DevChannelEdgeDriver : EdgeDriver
10 {
11 private static string servicePath = string.Empty;
12
13 public DevChannelEdgeDriver()
14 : this(DefaultService, DefaultOptions)
15 {
16 }
17
18 public DevChannelEdgeDriver(EdgeDriverService service, EdgeOptions options)
19 : base(service, options)
20 {
21 }
22
23 public static EdgeOptions DefaultOptions
24 {
25 get {
26 // The below path to the Edge Developer Channel executable is obviously hard-coded.
27 // On non-Windows OSes, and for custom install locations, you will need to add a
28 // property to the below options: BinaryLocation = <path to MSEdge.exe>
29 return new EdgeOptions()
30 {
31 BinaryLocation = @"C:\Program Files (x86)\Microsoft\Edge Dev\Application\msedge.exe"
32 };
33 }
34 }
35
36 public static EdgeDriverService DefaultService
37 {
38 get
39 {
40 EdgeDriverService service = EdgeDriverService.CreateDefaultService(ServicePath);
41 return service;
42 }
43 }
44
45 public static string ServicePath
46 {
47 get { return servicePath; }
48 set { servicePath = value; }
49 }
50 }
51 }