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

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 23, 2025

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

      May 23, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 23, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 23, 2025

      SteamOS is officially not just for Steam Deck anymore — now ready for Lenovo Legion Go S and sort of ready for the ROG Ally

      May 23, 2025

      Microsoft’s latest AI model can accurately forecast the weather: “It doesn’t know the laws of physics, so it could make up something completely crazy”

      May 23, 2025

      OpenAI scientists wanted “a doomsday bunker” before AGI surpasses human intelligence and threatens humanity

      May 23, 2025

      My favorite gaming service is 40% off right now (and no, it’s not Xbox Game Pass)

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

      A timeline of JavaScript’s history

      May 23, 2025
      Recent

      A timeline of JavaScript’s history

      May 23, 2025

      Loading JSON Data into Snowflake From Local Directory

      May 23, 2025

      Streamline Conditional Logic with Laravel’s Fluent Conditionable Trait

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

      SteamOS is officially not just for Steam Deck anymore — now ready for Lenovo Legion Go S and sort of ready for the ROG Ally

      May 23, 2025
      Recent

      SteamOS is officially not just for Steam Deck anymore — now ready for Lenovo Legion Go S and sort of ready for the ROG Ally

      May 23, 2025

      Microsoft’s latest AI model can accurately forecast the weather: “It doesn’t know the laws of physics, so it could make up something completely crazy”

      May 23, 2025

      OpenAI scientists wanted “a doomsday bunker” before AGI surpasses human intelligence and threatens humanity

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

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

    Related Posts

    Development

    Visual Studio Code now supports Baseline

    May 23, 2025
    Development

    The Baseline Netlify extension has shipped

    May 23, 2025
    Leave A Reply Cancel Reply

    Hostinger

    Continue Reading

    12 Must-Know Natural Backlinks Ideas for 2025

    Development

    Rew: A coffeescript runtime

    Development

    Google DeepMind Releases PaliGemma 2 Mix: New Instruction Vision Language Models Fine-Tuned on a Mix of Vision Language Tasks

    Machine Learning

    Why Your Code is Slow: Common Performance Mistakes Beginners Make

    Development
    Hostinger

    Highlights

    vimv – mass rename files using Vim

    June 23, 2024

    vimv is a terminal-based file rename utility that lets you easily mass-rename files using Vim.…

    Mamba Retriever: An Information Retriever Model for Utilizing Mamba for Effective and Efficient Dense Retrieval

    August 20, 2024

    Apple AirTag 2 Launch Is Expected In 2025: What Big Upgrades Are Coming Next Year?

    November 21, 2024

    Immutable Value Objects in PHP and Laravel With the Bags Package

    January 8, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

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