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

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 22, 2025

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

      May 22, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 22, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 22, 2025

      Sam Altman says ChatGPT’s viral Ghibli effect “forced OpenAI to do a lot of unnatural things”

      May 22, 2025

      How to get started with Microsoft Copilot on Windows 11

      May 22, 2025

      Microsoft blocks employees from sending emails that mention “Palestine” or “Gaza”

      May 22, 2025

      I missed out on the Clair Obscur: Expedition 33 Collector’s Edition but thankfully, the developers are launching something special

      May 22, 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

      Perficient is Shaping the Future of Salesforce Innovation

      May 22, 2025
      Recent

      Perficient is Shaping the Future of Salesforce Innovation

      May 22, 2025

      Opal – Optimizely’s AI-Powered Marketing Assistant

      May 22, 2025

      Content Compliance Without the Chaos: How Optimizely CMP Empowers Financial Services Marketers

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

      Sam Altman says ChatGPT’s viral Ghibli effect “forced OpenAI to do a lot of unnatural things”

      May 22, 2025
      Recent

      Sam Altman says ChatGPT’s viral Ghibli effect “forced OpenAI to do a lot of unnatural things”

      May 22, 2025

      How to get started with Microsoft Copilot on Windows 11

      May 22, 2025

      Microsoft blocks employees from sending emails that mention “Palestine” or “Gaza”

      May 22, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Why Can’t I Locate Clickable Element in Choose File Keyword?

    Why Can’t I Locate Clickable Element in Choose File Keyword?

    April 3, 2025

    I am using Robot framework to automate a file upload to a webpage. I am using the Choose File keyword.

    Code notes: ${CONTINUE_BUTTON} is a button at the bottom of the screen, ensuring that the entire bottom of the webpage is visible. The Sleeps are there temporarily so that I know it’s not a timing issue and can watch the automation as it happens.

    ”’

    ${uploadFileButton} =  xpath://*[@id="67e21641-340b-4f15-94e2-e5ab7a8532a1"]/div/button
    ${testDoc} =  C:UsersjasonbDocumentsDummyDocumentsTestDocument.pdf
    
    Scroll Element Into View    ${CONTINUE_BUTTON}  
    Sleep    10s  
    Wait Until Element Is Visible    ${uploadFileButton}  
    Choose File    ${uploadFileButton}    ${testDoc}  
    Sleep    10s 
    

    ”’

    I ensured that the Xpath locator is the correct one by searching it in my inspect panel. In the failure screenshots, the button is visible.

    When I use the Wait Until Element Is Visible keyword, I get this error:

    ”’

    Element 'xpath://*[@id="67e21641-340b-4f15-94e2-e5ab7a8532a1"]/div/button' not visible 
    after 5 seconds.
    

    ”’

    When I don’t use the Wait Until Element is Visible keyword, I get this error:

    ”’

    Element with locator 'xpath://*[@id="67e21641-340b-4f15-94e2-e5ab7a8532a1"]/div/button' 
    not found.
    

    ”’

    I also tried using a different element that is not the clickable part of the upload file button:

    ”’

    ${uploadFileButton} =  xpath://*[@id="67e21641-340b-4f15-94e2-e5ab7a8532a1"]/div/button
    

    ”’

    And got this error:

    ”’

    Element with locator 'xpath://*[@id="67e21641-340b-4f15-94e2-e5ab7a8532a1"]' not 
    interactable.
    

    ”’

    So it can see the non-clickable element, but not the clickable element just a few HTML lines down from it. What is happening here?

    Source: Read More

    Hostinger
    Facebook Twitter Reddit Email Copy Link
    Previous ArticleWardrobe is a GNOME customization tool
    Next Article Playwright Mobile Automation for Seamless Web Testing

    Related Posts

    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 23, 2025
    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-47512 – Tainacan Path Traversal

    May 23, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Why GIGL needs a UX redesign

    Web Development

    JustDD is a USB Image Writer

    Linux

    Precise Number Formatting with Laravel’s Enhanced Number::spell Method

    Development

    JavaScript’s Rust tool belt

    Development

    Highlights

    Development

    OpenAI’s ChatGPT ‘Voice Mode’ Doesn’t Meet Safety Standards; Rollout Pushed to July

    June 27, 2024

    Experts are raising eyebrows after OpenAI announced a one-month delay in the rollout of its…

    Community News: Latest PECL Releases (12.24.2024)

    December 24, 2024

    CVE-2025-1253 – RTI Connext Professional Classic Buffer Overflow

    May 8, 2025

    Don’t buy a new ROG Ally X handheld — Upgrade your original ROG Ally’s battery life with this replacement kit instead

    April 22, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

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