Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 16, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      May 16, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 16, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 16, 2025

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025

      Minecraft licensing robbed us of this controversial NFL schedule release video

      May 16, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      The power of generators

      May 16, 2025
      Recent

      The power of generators

      May 16, 2025

      Simplify Factory Associations with Laravel’s UseFactory Attribute

      May 16, 2025

      This Week in Laravel: React Native, PhpStorm Junie, and more

      May 16, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025
      Recent

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Winapp driver not support web elements

    Winapp driver not support web elements

    April 27, 2024

    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(“http://127.0.0.1:4723”), capabilities);

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

    DesiredCapabilities Appcapabilities = new DesiredCapabilities();
    Appcapabilities.setCapability(“app”, “Root”);
    WindowsDriver AppSession = new WindowsDriver(new URL(“http://127.0.0.1:4723”), Appcapabilities);
    Thread.sleep(5000);

    WebDriverWait wait=new WebDriverWait(AppSession, 30);

    AppSession.findElementByAccessibilityId(“txtUserName”).sendKeys(“r_nave”);
    AppSession.findElementByAccessibilityId(“txtPassword”).sendKeys(“naveen”);
    AppSession.findElementByAccessibilityId(“btnLogin”).click();
    }

    }

    Error::

    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:
    http://seleniumhq.org/exceptions/no_such_element.html Build info:
    version: ‘3.5.3’, revision: ‘a88d25fe6b’, time:
    ‘2017-08-29T12:42:44.417Z’ System info: host: ‘ANTONYW10’, ip:
    ‘10.246.0.91’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version:
    ‘10.0’, java.version: ‘10.0.1’ Driver info:
    io.appium.java_client.windows.WindowsDriver Capabilities [{app=Root,
    javascriptEnabled=true, platformName=XP, platform=XP}] Session ID:
    BB465F8F-3CE3-453C-99CB-BB517378A6B2
    *** Element info: {Using=accessibility id, value=txtUserName}

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

    Source: Read More

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleUbuntu 24.04 LTS “Noble Numbat” Released with New Installer & More
    Next Article China’s Vidu Challenges Sora with High-Definition 16-Second AI Video Clips in 1080p

    Related Posts

    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 17, 2025
    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-40906 – MongoDB BSON Serialization BSON::XS Multiple Vulnerabilities

    May 17, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    How to Implement a PHP Face Recognition Login System

    Development

    Best practices for running Apache Cassandra with Amazon EBS

    Databases

    Sam Altman Admits: ChatGPT’s New Personality Is “Annoying”, Fix Coming This Week

    Artificial Intelligence

    Helping robots practice skills independently to adapt to unfamiliar environments

    Artificial Intelligence
    GetResponse

    Highlights

    Development

    Hugging Face Researchers Introduce Idefics2: A Powerful 8B Vision-Language Model Elevating Multimodal AI Through Advanced OCR and Native Resolution Techniques

    April 18, 2024

    As digital interactions become increasingly complex, the demand for sophisticated analytical tools to understand and…

    A Minecraft Movie just hit theaters — but McDonald’s Nether Flame Sauce is the real star

    April 7, 2025

    Sequential-NIAH: A Benchmark for Evaluating LLMs in Extracting Sequential Information from Long Texts

    April 24, 2025

    How AI is Transforming Data Privacy and Ensuring Compliance

    December 30, 2024
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.