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

      Prompting Is A Design Act: How To Brief, Guide And Iterate With AI

      August 29, 2025

      Best React.js Development Services in 2025: Features, Benefits & What to Look For

      August 29, 2025

      August 2025: AI updates from the past month

      August 29, 2025

      UI automation: Why “try, try again”is your mantra

      August 29, 2025

      AI is returning to Taco Bell and McDonald’s drive-thrus – will customers bite this time?

      August 30, 2025

      I deciphered Apple’s iPhone 17 event invite – my 3 biggest theories for what’s expected

      August 30, 2025

      This Milwaukee 9-tool kit is $200 off for Labor Day – here’s what’s included

      August 30, 2025

      Massive TransUnion breach leaks personal data of 4.4 million customers – what to do now

      August 30, 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

      Streamlining Application Automation with Laravel’s Task Scheduler

      August 30, 2025
      Recent

      Streamlining Application Automation with Laravel’s Task Scheduler

      August 30, 2025

      A Fluent Path Builder for PHP and Laravel

      August 30, 2025

      Planning Sitecore Migration: Things to consider

      August 30, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      From Novice to Pro: Mastering Lightweight Linux for Your Kubernetes Projects

      August 30, 2025
      Recent

      From Novice to Pro: Mastering Lightweight Linux for Your Kubernetes Projects

      August 30, 2025

      Microsoft AI launches MAI-Voice-1 and previews MAI-1 foundation model

      August 29, 2025

      Clipchamp Tutorial: Cut and Split Videos Quickly

      August 29, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Tech & Work»UI automation: Why “try, try again”is your mantra

    UI automation: Why “try, try again”is your mantra

    August 29, 2025

    Over the weekend, I was looking to book flights for holidays. All excited, I was able to find a decent price for my family to head for some sunshine later this summer. I reached the payment stage, and that’s where the excitement and smile stopped. I was waiting for confirmation that my payment was finalizing, but then the system took a turn, and I was back on the booking page. Even more, I now had a higher price to pay for the flights. Did I continue with booking, NOOOOOO. The website had let me down, taking away all the joy and excitement I had built up. I just shut the laptop and cried in a corner.  (#WillDamienGoOnHolidays)

    UI automation promises efficiency, reliability, and a significant reduction in testing headaches. But let’s be honest, the road to seamless automation is not always smooth. If you have ever found your meticulously crafted test scripts failing unexpectedly, you’re not alone. In the world of UI automation, the phrase, “If at first you don’t succeed, try, try again,” isn’t just a cliché; it’s a fundamental principle.

    The Unknown Reality of UI Automation

    Why is UI automation so up and down, fail or pass? Applications themselves are not designed to be tested in traditional ways. Websites and applications are constantly changing, whether it’s being developed in React or some other framework, with elements shifting, IDs changing, and new features being deployed. This leads to unstable scripts and failed tests, but why, you ask?

    • Ever-changing shift in landscape: UI elements are not static; they change with updates and dynamic content.
    • Uncontrollable Environmental Variables: So many variables involved in testing, such as browser differences, operating systems, and network conditions, add layers of complexity.
    • External Influences: Third-party components can introduce unpredictable behavior.

    Tests and test cases, manual or automated, are resilient. Here are a few practical tips to help you build more resilient UI automation:

    • Better ways of finding objects: Instead of relying on flaky IDs, use selectors that look at simple attributes.
    • Implement visual testing: Look at visual regressions by comparing screenshots of expected and actual UI states.
    • Leverage AI-powered tools: Examine AI-driven automation tools that can automatically adapt to UI changes.
    • Isolate your tests: If possible, test in a testing/staging environment to find problems in production.

    Embracing the “Try, Try Again” Mindset

    In life, we should never accept failure, but instead look to the old mantra, “try, try again.”  UI automation is a journey, much like life itself, with its ups and downs. However, by tweaking a test script here and there, or modifying an environment variable, each failure becomes an opportunity to learn.

    From a testing perspective, where can we gain quick insights?

    • Define and refine object recognition: Use robust selectors like CSS or XPath that are less susceptible to change.
    • Implement explicit waits: Be patient! Use explicit waits to ensure elements are ready before interacting with them.
    • Retry methodology: Build in retry mechanisms to handle transient errors like network glitches.
    • Debugging is learning: Learn to analyze test logs and use debugging tools to pinpoint the root cause of failures. A successful day is not measured by how many tests you have passed but by what you learned from those failed tests.
    • Continuous improvement: Regularly review and update your scripts to keep them aligned with UI changes.
    • Try new technologies: With a no-code approach to automation, are we looking at visual testing? Can I offload to an on-demand platform to test without looking for machines from IT?

    The Rewards of Persistence

    While UI automation can be challenging, the rewards of persistence are immense. By embracing the “try, try again” philosophy, you build robust and reliable automation that reduces manual testing effort, speeds up release cycles, improves software quality, and even helps build team confidence in the automation process.

    UI automation is a marathon, not a sprint. Today, we are in too much of a rush, and quality is suffering. Expect setbacks, learn from them, and keep refining your approach. Remember, every failed test is a step closer to “automation mastery.” So, the next time your script stumbles, take a deep breath and “try, try again.” You’ll be amazed at what you can achieve.

    Websites and applications are sometimes not designed for testing. I hear that from time to time, and some customers make automation tools work even if they can get 60% automated. That’s more than they had before they started the process. If we can spend a bit more time being persistent with testing and debugging applications, fewer people like me will give up when things don’t work on the first try.

    Will I be brave enough to try to book flights again?

    The post UI automation: Why “try, try again”is your mantra appeared first on SD Times.

    Source: Read More 

    news
    Facebook Twitter Reddit Email Copy Link
    Previous ArticleCVE-2025-39247 – HikCentral Professional Unauthenticated Privilege Escalation
    Next Article August 2025: AI updates from the past month

    Related Posts

    Tech & Work

    Prompting Is A Design Act: How To Brief, Guide And Iterate With AI

    August 29, 2025
    Tech & Work

    Best React.js Development Services in 2025: Features, Benefits & What to Look For

    August 29, 2025
    Leave A Reply Cancel Reply

    For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

    Continue Reading

    CVE-2025-5477 – Sony XAV-AX8500 Bluetooth L2CAP Protocol Heap-based Buffer Overflow Remote Code Execution Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-5439 – “Linksys RE6500/RE6250/RE6300/RE6350/RE7000/RE9000 Facebook Like Command Injection Vulnerability”

    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-4761 – PHPGurukul Complaint Management System SQL Injection Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    CVE-2024-12244 – GitLab EE Information Disclosure

    Common Vulnerabilities and Exposures (CVEs)

    Highlights

    CitrixBleed 2 might be actively exploited (CVE-2025-5777)

    June 30, 2025

    CitrixBleed 2 might be actively exploited (CVE-2025-5777)

    While Citrix has observed some instances where CVE-2025-6543 has been exploited on vulnerable NetScaler networking appliances, the company still says that they don’t have evidence of exploitation for …
    Read more

    Published Date:
    Jun 30, 2025 (2 hours, 57 minutes ago)

    Vulnerabilities has been mentioned in this article.

    CVE-2025-6543

    CVE-2025-5777

    CVE-2025-5349

    CVE-2025-5439

    CVE-2023-4966

    Cybercrime is surging across Africa

    June 25, 2025

    DeepSeek-AI Released DeepSeek-Prover-V2: An Open-Source Large Language Model Designed for Formal Theorem, Proving through Subgoal Decomposition and Reinforcement Learning

    May 1, 2025

    CVE-2024-12143 – Mobilteg Mobile Informatics Mikro Hand Terminal SQL Injection

    June 27, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

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