# Updating to Appium.WebDriver 5.0.0-beta01

**URL:** <https://discuss.appium.io/t/updating-to-appium-webdriver-5-0-0-beta01/36721>\
**Category:** Support\
**Created:** [July 1, 2022, 1:56am UTC](https://discuss.appium.io/t/updating-to-appium-webdriver-5-0-0-beta01/36721 "2022-07-01T01:56:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![glv](https://discuss.appium.io/letter_avatar_proxy/v4/letter/g/46a35a/32.png) [@glv](https://discuss.appium.io/u/glv)\
**Post date:** [July 1, 2022, 1:56am UTC](https://discuss.appium.io/t/updating-to-appium-webdriver-5-0-0-beta01/36721/1 "2022-07-01T01:56:36Z")

</div>

Hi,

I’ve been using Appium.Webdriver version 4.3.1 with selenium 3.141.0 to successfully conduct automated testing of my winforms app in both Windows 10 and 11 for 6 months now.

Here’s a snippet of code that I’ve used to sucessfully start and test with Notepad:

```
        var appiumOptions = new AppiumOptions();
        appiumOptions.AddAdditionalCapability("app", @"C:\Windows\System32\notepad.exe");
        appiumOptions.AddAdditionalCapability("deviceName", "WindowsPC");
        appiumOptions.AddAdditionalCapability("platformName", "Windows");
        // initialise the windows application driver session
        session = new WindowsDriver<WindowsElement>(new Uri(WindowsApplicationDriverUrl), appiumOptions);

```

I recently attempted to update to Selenium 4.3.0 and Appium.Webdriver 5.0.0-beta01. I’ve changed the above code to:  
var appiumOptions = new AppiumOptions  
{  
//App = WinformsAppId,  
App = “C:\Windows\System32\notepad.exe”,  
DeviceName = “WindowsPC”,  
PlatformName = “Windows”  
};  
// initialise the windows application driver session  
session = new WindowsDriver(new Uri(WindowsApplicationDriverUrl), appiumOptions);

but I get this exception:  
Bad capabilities. Specify either app or appTopLevelWindow to create a session

Is there another change that I need to make or is this a bug??

Thanks, GLV

---

<div class="post-metadata">

**Author:** ![mykola-mokhnach](https://discuss.appium.io/user_avatar/discuss.appium.io/mykola-mokhnach/32/4578_2.png) [@mykola-mokhnach](https://discuss.appium.io/u/mykola-mokhnach)\
**Post date:** [July 1, 2022, 5:53am UTC](https://discuss.appium.io/t/updating-to-appium-webdriver-5-0-0-beta01/36721/2 "2022-07-01T05:53:40Z")

</div>

> <https://github.com/appium/appium-dotnet-driver/issues/487>
