Skip to content

Windows 11 Gui test Wndorms. #292

@daCostaeurogard

Description

@daCostaeurogard

After installing the latest windriver and starting it.

I' have tried to write my first test
`
private new WindowsDriver? _driver;
const string editorsDemoPath =
@"C:\Work\2022.1\Demos.Win\EditorsDemos\CS\EditorsMainDemo\bin\Debug\EditorsMainDemo.exe";

[ClassInitialize]
public static  void TestFixtureSetup(TestContext context)
{
    {
        // Set up desired capabilities
        var appCapabilities = new AppiumOptions();
        appCapabilities.AddAdditionalAppiumOption("app", "Microsoft.WindowsCalculator_8wekyb3d8bbwe!App");
        appCapabilities.AddAdditionalAppiumOption("deviceName", "WindowsPC");

        // Initialize the Windows driver
        var driver = new WindowsDriver<WindowsElement>(new Uri(
            }

}
[ClassCleanup]
public static void TestFixtureTearDown()
{
    _driver.Dispose();
} 

`

but this produces an error

as WindowsDriver is unkown.

error (aktive) CS0308 Type "WindowsDriver" is not generic and can not be used as Typargument

Is there a solution for this possible
?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions