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

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 18, 2025

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

      May 18, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 18, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 18, 2025

      Gears of War: Reloaded — Release date, price, and everything you need to know

      May 18, 2025

      I’ve been using the Logitech MX Master 3S’ gaming-influenced alternative, and it could be your next mouse

      May 18, 2025

      Your Android devices are getting several upgrades for free – including a big one for Auto

      May 18, 2025

      You may qualify for Apple’s $95 million Siri settlement – how to file a claim today

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

      YTConverter™ lets you download YouTube videos/audio cleanly via terminal — especially great for Termux users.

      May 18, 2025
      Recent

      YTConverter™ lets you download YouTube videos/audio cleanly via terminal — especially great for Termux users.

      May 18, 2025

      NodeSource N|Solid Runtime Release – May 2025: Performance, Stability & the Final Update for v18

      May 17, 2025

      Big Changes at Meteor Software: Our Next Chapter

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

      Gears of War: Reloaded — Release date, price, and everything you need to know

      May 18, 2025
      Recent

      Gears of War: Reloaded — Release date, price, and everything you need to know

      May 18, 2025

      I’ve been using the Logitech MX Master 3S’ gaming-influenced alternative, and it could be your next mouse

      May 18, 2025

      How to Make Your Linux Terminal Talk Using espeak-ng

      May 18, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Using Selenium (Java),Unable to select a particular value from dropdown

    Using Selenium (Java),Unable to select a particular value from dropdown

    May 7, 2024

    In my application, there is a drop down to select “Estimation Date”:

    Please find below my test case. It is failing at the line where I am trying to select “Since”:

    public class dropdown_issue {

    GenericFunctions gf= new GenericFunctions();

    @Test(enabled = true)

    public void dropdown () throws InterruptedException{
    System.setProperty(“webdriver.gecko.driver”,”D:\Selenium\BrowserDrivers\geckodriver.exe”);
    WebDriver dr=new FirefoxDriver();
    dr.get(“http://10.127.129.79:8080/abc”);

    Thread.sleep(3000);
    dr.findElement(By.id(“username”)).sendKeys(“user”);
    dr.findElement(By.id(“password”)).sendKeys(“user”);
    dr.findElement(By.xpath(“//button[@type=’submit’]”)).click();
    WebElement est_date_dd= dr.findElement(By.xpath(“//div[@class=’clearfix’]//select[@name=’est-date’]”));
    Select est_date= new Select(est_date_dd);
    est_date.selectByValue(“Since”);
    Thread.sleep(3000);
    dr.quit();
    }
    }

    Source: Read More

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleHow to extract adb dumpsys response for validation?
    Next Article Microsoft AI Research Introduces SIGMA: An Open-Source Research Platform to Enable Research and Innovation at the Intersection of Mixed Reality and AI

    Related Posts

    Development

    February 2025 Baseline monthly digest

    May 18, 2025
    Artificial Intelligence

    Markus Buehler receives 2025 Washington Award

    May 18, 2025
    Leave A Reply Cancel Reply

    Hostinger

    Continue Reading

    How to Build Magento 2 Category Page Using ReactJS

    Development

    Former Polish Deputy Minister Charged with Misuse of Funds to Buy Pegasus Spyware

    Development

    Build a scalable, context-aware chatbot with Amazon DynamoDB, Amazon Bedrock, and LangChain

    Databases

    Currency Formatting with Laravel’s Enhanced Number Helper

    Development

    Highlights

    Linux

    Rilasciato Mozilla Thunderbird 135: Novità, Miglioramenti e Sicurezza per il Client di Posta Elettronica Open Source

    February 6, 2025

    Mozilla ha recentemente annunciato la nuova versione Thunderbird 135, il noto client open source per…

    CERT-UA Warns of UAC-0173 Attacks Deploying DCRat to Compromise Ukrainian Notaries

    February 26, 2025

    CVE-2024-55569 – Samsung Exynos Out-of-Bounds Write Vulnerability

    May 14, 2025

    5 Phases to Create Software Products that Will Be Perfect for Your Customers

    February 23, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

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