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»Unable to click button using Selenium Webdriver Java

    Unable to click button using Selenium Webdriver Java

    July 11, 2024

    I am trying to click a button through webdriver. After inspecting the button element it highlights to the following:

    XPath:

    /html/body/div/div/main/div/div[2]/div/div[2]/table/tbody/tr/td[4]/form/button

    This is my code:

    WebDriver driver= new FirefoxDriver(); driver.get(“Website link”);
    driver.findElement(By.id(“email”)).sendKeys(“xyz”);
    driver.findElement(By.id(“password”)).sendKeys(“xyz”);
    driver.findElement(By.xpath(“//*[text()=’Log in’]”)).click();
    driver.findElement(By.xpath(“//button[text()=’CANCEL’]”)).click();

    But, when I try to run the code, it doesn’t click the button.
    Can anyone help me solve this? Would be a great help

    Source: Read More

    Hostinger
    Facebook Twitter Reddit Email Copy Link
    Previous ArticleHow to approach test automation of Graphs and Charts? i.e., elements made of tags
    Next Article Level Up Your Coding: Get Your AI Pair Programmer with Magicode 🚀

    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

    This AI Paper from ByteDance Introduces MegaScale-Infer: A Disaggregated Expert Parallelism System for Efficient and Scalable MoE-Based LLM Serving

    This AI Paper from ByteDance Introduces MegaScale-Infer: A Disaggregated Expert Parallelism System for Efficient and Scalable MoE-Based LLM Serving

    Machine Learning

    Critical Veeam Vulnerabilities Expose Service Provider Console to Cyber Risks

    Development

    CVE-2025-4768 – Feng Ha Ha/MegaGao SSM-ERP and Production SSM Unrestricted File Upload Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    An early warning system for novel AI risks

    Artificial Intelligence

    Highlights

    News & Updates

    Ubisoft says you don’t own your video games, read the fine print

    April 11, 2025

    Ubisoft says you don’t own your video games, read the fine print Source: Read More /…

    advertising firms in san francisco

    January 23, 2025

    Review your Amazon Aurora and Amazon RDS security configuration with Prowler’s new checks

    August 6, 2024

    Representative Line: Tern on the Flames

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

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