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 click on the list when it said the list has no attribute “click”?

    How to click on the list when it said the list has no attribute “click”?

    July 1, 2024

    from selenium import webdriver
    import time
    from selenium.webdriver.common.keys import Keys
    from selenium.webdriver.common.by import By
    from selenium.webdriver.support.ui import WebDriverWait
    from selenium.webdriver.support import expected_conditions as EC
    import random
    import select

    driver = webdriver.Chrome(‘ChromeDriver’)
    driver.get(“https://devbusiness.tunai.io/login”)
    time.sleep(2)
    driver.maximize_window()

    #log in credentials
    username = driver.find_element(By.NAME, “loginUsername”);
    username.send_keys(“dayon@tunai”);

    password = driver.find_element(By.NAME, “loginPassword”);
    password.send_keys(“12341234”);

    login = driver.find_element(By.XPATH,”//*[@id=’app’]/div/div/div/div/div/div[2]/form/div[4]/button”);
    login.submit();
    time.sleep(3)

    driver.get(“https://devbusiness.tunai.io/dashboard/my_salon_user”)
    time.sleep(3)

    randomUsername = random.choice([“dayon.salon3@tunai”,”dayonmanager@tunai”,”Dayon.der@tunai”])
    driver.find_element(By.XPATH, “//tbody[@role=’rowgroup’]/tr[@role=’row’]/td/a[text()='”+ randomUsername +”‘]”).click()
    print(“Username selected: “, randomUsername)
    time.sleep(5)

    driver.find_element(By.XPATH,”//*[@id=’page-content’]/div/div[3]/div/div[2]/div/div/div[2]/div/div[1]/header/a”).click()
    time.sleep(5)

    # Get the list of elements
    elements = driver.find_elements(By.CLASS_NAME,’custom-control-input’)

    # Select a random element from the list
    random_element = random.choice(elements)
    driver.execute_script(“arguments[0].click();”, random_element)

    # Click on the selected element
    random_element.click()
    print(“Element selected: “, random_element)
    time.sleep(5)

    driver.find_element(By.XPATH,”//*[@id=’accKey’]”).click()
    time.sleep(5)

    I’ve been add “argument.click[]”,”webdriver wait until EC to be clickable” but still showing “Element not intractable. What would be the other possible solution? Hope someone could clarify for me. Thanks and have a nice day.

    Source: Read More

    Hostinger
    Facebook Twitter Reddit Email Copy Link
    Previous ArticleDevelopment Release: Linux Mint 22 Beta
    Next Article Parallel selenium UI test failure rate has increase when compared to sequential execution

    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

    Researchers from UCI and Cisco Propose ‘CrystalBall’: A Novel AI Method for Automated Attack Graph Generation Using Retriever-Augmented Large Language Models

    Development

    Why Synology’s new NAS drive support policy isn’t as bad as I first thought

    News & Updates

    Plausible – web analytics software

    Linux

    ARM: Enhancing Open-Domain Question Answering with Structured Retrieval and Efficient Data Alignment

    Machine Learning

    Highlights

    Artificial Intelligence

    Discovering novel algorithms with AlphaTensor

    May 13, 2025

    In our paper, published today in Nature, we introduce AlphaTensor, the first artificial intelligence (AI)…

    Harnessing Chisel for Covert Operations: Unpacking a Multi-Stage PowerShell Campaign

    November 12, 2024

    More than $250M Seized in Global Online Scam Crackdown

    June 27, 2024

    Intel and Google unveil new AI chips to compete with NVIDIA

    April 10, 2024
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

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