I have a problem with testing of aúúlivation. I have this code for net CORE using MS test net.CORE. public class IPTV

    static WindowsDriver<WindowsElement> Sessions;


    public static void BeforeTest(TestContext testContext)
        AppiumOptions appiumOptions = new AppiumOptions();

        appiumOptions.AddAdditionalCapability("app", @"C:\Users\renata.cikova\Desktop\IPTVManagement\Colosseo.IPTVManagement.exe");
        //appiumOptions.AddAdditionalCapability("platformName", "Windows");
        // appiumOptions.AddAdditionalCapability("deviceName", "cikova-pc");
        Sessions = new WindowsDriver<WindowsElement>(new Uri(""), appiumOptions);
        Sessions.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(25);
        // Session.Manage().Window().Maximize();


    public void UnsucessLogin()
        if (Sessions.CurrentWindowHandle != Sessions.WindowHandles.Last())
        Sessions.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(50);
        var textbox = Sessions.FindElementByClassName("RadBusyIndicator").FindElementByClassName("TextBox");
        var password = Sessions.FindElementByClassName("PasswordBox");
        //var text = Session.FindElementByName("Unknown error").Text;
      //  Assert.AreEqual(text, "Unknown error");


Appium open application, but can't find any elements of the application. What I have wrong? I haved installed web driver client, I am using UI recorder to identify the elements, so I definitely don`t know where is a mistake.

1 Answer 1


var textbox = Sessions.FindElementByClassName("RadBusyIndicator").FindElementByClassName("TextBox");

It looks like you are not using FindElement correctly.

Class name - For IOS it is the full name of the XCUI element and begins with XCUIElementType. For Android it is the full name of the UIAutomator2 class (e.g.: android.widget.TextView)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.