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»How to select a dropdown value in Selenium WebDriver using Java appium?

    How to select a dropdown value in Selenium WebDriver using Java appium?

    August 11, 2024

    I am new to Selenium, currently am working on selenium webdriver. I want to select a value from the drop-down. But I am not able to do it because of some error. Also, I want to inform you that in my automator viewer I have not found any id of the dropdown element hence I am using with XPath but I am not able to do please guide me. My java code is below:

    @Test
    public void print() throws Exception

    {

    WebDriverWait wait = new WebDriverWait(driver, 60);// 1 minute
    wait.until(ExpectedConditions.visibilityOfElementLocated(By.className(“android.widget.Button”)));

    driver.findElementByClassName(“android.widget.EditText”).sendKeys(“1234567890”);
    driver.hideKeyboard();

    Select drpCountry = new Select(driver.findElement(By.xpath(“//android.widget.ImageView[@index=’2′]”)));

    drpCountry.selectByVisibleText(“+91(IN)”);
    drpCountry.selectByIndex(8);

    driver.findElementByClassName(“android.widget.Button”).click();
    }

    Source: Read More

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleAppium – ‘POST /element’ cannot be proxied to UiAutomator2 server because the instrumentation process is not running
    Next Article How to check webservice response in database using Selenium or UFT

    Related Posts

    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 17, 2025
    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-4831 – TOTOLINK HTTP POST Request Handler Buffer Overflow Vulnerability

    May 17, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    The 24 best Labor Day laptop deals

    Development

    How Can Your Website or Application Have More Sucess Deliverying Email Messages to Gmail, Yahoo and Other Email Providers X

    Development

    Whiteboard-of-Thought (WoT) Prompting: A Simple AI Approach to Enhance the Visual Reasoning Abilities of MLLMs Across Modalities

    Development

    mogwai – view library for creating GUI applications

    Development

    Highlights

    CodeSOD: Maximally Zero

    August 22, 2024

    Today’s anonymous submitter found some Java code which finds the largest value in a quartet…

    The latest Windows 11 update did not end support for older Intel chips. Here’s the source of the confusion.

    February 20, 2025

    Optimizing Images for Web Performance

    February 21, 2025

    Scaling to 70M users: How Flo Health optimized Amazon DynamoDB for cost and performance

    December 18, 2024
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

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