Winapp driver not support web elements

enter image description here

I’m automating my Windows application.

I’m using Winapp driver and Java language for automation. I am capturing the web elements using UI Spy Tool.

My application is loading, still I can’t automate the login page.
I’m getting the following error:

My Code:

public class Reporter 

    private static WindowsDriver<WindowsElement> driver;

    public static void main(String args[])  
                           throws MalformedURLException, InterruptedException 
        DesiredCapabilities capabilities = new DesiredCapabilities();
        String homePath = System.getenv("USERPROFILE");
        capabilities.setCapability("app",  homePath + "\AppData\Local\Apps\2.0\HHCZT7OJ.D37\61K3K288.OXH\base..tion_6e5be371fe594b2d_0001.0000_aad96dff3b16369b\");
        WindowsDriver Session = new WindowsDriver(new URL(""), capabilities);

        Session.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);

        DesiredCapabilities Appcapabilities = new DesiredCapabilities();
        Appcapabilities.setCapability("app", "Root");
        WindowsDriver AppSession = new WindowsDriver(new URL(""), Appcapabilities);

        WebDriverWait wait=new WebDriverWait(AppSession, 30);




Jul 16, 2018 10:19:47 AM org.openqa.selenium.remote.ProtocolHandshake
createSession INFO: Detected dialect: OSS Jul 16, 2018 10:19:47 AM
org.openqa.selenium.remote.ProtocolHandshake createSession INFO:
Detected dialect: OSS Exception in thread “main”
org.openqa.selenium.NoSuchElementException: An element could not be
located on the page using the given search parameters. (WARNING: The
server did not provide any stacktrace information) Command duration or
timeout: 0 milliseconds For documentation on this error, please visit: Build info:
version: ‘3.5.3’, revision: ‘a88d25fe6b’, time:
‘2017-08-29T12:42:44.417Z’ System info: host: ‘ANTONYW10’, ip:
‘’, ‘Windows 10’, os.arch: ‘amd64’, os.version:
‘10.0’, java.version: ‘10.0.1’ Driver info: Capabilities [{app=Root,
javascriptEnabled=true, platformName=XP, platform=XP}] Session ID:
*** Element info: {Using=accessibility id, value=txtUserName}

Now it’s working for me that I put thread.sleep 20000

One Answer

  1. Can you provide the whole app schema? Where is this edit control nested in?
  2. Have you tried first doing:

    driver.findElementByAccessibilityId("txtUserName").click(); driver.findElementByAccessibilityId("txtUserName").sendKeys("");

Answered by Michal Dobrzycki on December 28, 2020

Add your own answers!

Related Questions

Random pause of 2 to 5 seconds between requests Jmeter

1  Asked on November 28, 2021 by denis-filatov


Script timeout in Protractor

2  Asked on November 21, 2021 by ingridd-brito


Find button class with Selenium on Python

2  Asked on November 19, 2021 by nizariansyah-agung


Should Testers be called QA?

4  Asked on October 25, 2021 by jainam


Problem implicit wait with wait.until

1  Asked on October 25, 2021 by markus-pallasch


Ask a Question

Get help from others!

© 2022 All rights reserved.