title: WinAppDriver - How to set up session in VB.NET for testing Classic Windows Application
body: <p>Since Microsoft has said that Visual Studio 2019 is the last to include Coded UI, I am trying to move our Windows Desktop Application automation solution their recommended replacement, WinAppDriver.</p>
  
  <p>I am having trouble getting the session going with the examples I have found online.  Many C# examples, but I have not found any VB.NET examples.</p>
  
  <p>The C# online Notepad example starts like:</p>
  
  <pre><code>DesiredCapabilities appCapabilities = new DesiredCapabilities();
  appCapabilities.SetCapability("app", @"C:\Windows\System32\notepad.exe");
  NotepadSession = new WindowsDriver&lt;WindowsElement&gt;(new Uri("http://127.0.0.1:4723"), appCapabilities);
  </code></pre>
  
  <p>I have successfully (I think) converted the first two lines to VB.NET like this:</p>
  
  <pre><code>Dim appCapabilities As DesiredCapabilities = New DesiredCapabilities()
  appCapabilities.SetCapability("app", "C:\Windows\System32\notepad.exe")
  </code></pre>
  
  <p>I need to get the third line from the C# example code above converted to VB.NET so that we can hopefully get WinAppDriver working for our existing CodedUI automation solution.</p>