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

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 21, 2025

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

      May 21, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 21, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 21, 2025

      The best smart glasses unveiled at I/O 2025 weren’t made by Google

      May 21, 2025

      Google’s upcoming AI smart glasses may finally convince me to switch to a pair full-time

      May 21, 2025

      I tried Samsung’s Project Moohan XR headset at I/O 2025 – and couldn’t help but smile

      May 21, 2025

      Is Google’s $250-per-month AI subscription plan worth it? Here’s what’s included

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

      IOT and API Integration With MuleSoft: The Road to Seamless Connectivity

      May 21, 2025
      Recent

      IOT and API Integration With MuleSoft: The Road to Seamless Connectivity

      May 21, 2025

      Celebrating GAAD by Committing to Universal Design: Low Physical Effort

      May 21, 2025

      Celebrating GAAD by Committing to Universal Design: Flexibility in Use

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

      Microsoft open-sources Windows Subsystem for Linux at Build 2025

      May 21, 2025
      Recent

      Microsoft open-sources Windows Subsystem for Linux at Build 2025

      May 21, 2025

      Microsoft Brings Grok 3 AI to Azure with Guardrails and Enterprise Controls

      May 21, 2025

      You won’t have to pay a fee to publish apps to Microsoft Store

      May 21, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»AttributeError: module ‘selenium.webdriver.common.keys’ has no attribute ‘RETURN’

    AttributeError: module ‘selenium.webdriver.common.keys’ has no attribute ‘RETURN’

    June 7, 2024

    When I run my script it gives me this error:

    Traceback (most recent call last):
    File “C:DevelopmentPython_ProjectSDETpythonProjectSDET_Packagemy_firstProject.py”, line 18, in <module>
    search.send_keys(keys.RETURN)
    AttributeError: module ‘selenium.webdriver.common.keys’ has no attribute ‘RETURN’

    Here is my code:

    from selenium import webdriver
    import selenium
    from selenium.webdriver.common import keys
    import time

    # this will load googlechrome from the location in C-drive

    PATH = “C:Program Files (x86)chromedriver.exe”

    driver = webdriver.Chrome(PATH)

    driver.get(“https://techwithtim.net”)
    print(driver.title) # print the title of the page

    search = driver.find_element_by_name(“s”)
    search.send_keys(“test”)
    search.send_keys(keys.RETURN)
    time.sleep(5)
    driver.close() # close the browser

    Source: Read More

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleGet an Introduction to AI Services Like ChatGPT for Just $50
    Next Article Selenium for Internet explorer on Jenkins

    Related Posts

    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 21, 2025
    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-20152 – Cisco ISE RADIUS Message Processing Denial of Service Vulnerability

    May 21, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    The Ongoing Challenges of Understanding Long COVID and Exploring Innovative Solutions

    Development

    CVE-2025-45887 – Yifang CMS SSRF Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    LWiAI Podcast #190 – AI scaling struggles, OpenAI Agents, Super Weights

    Artificial Intelligence

    CVE-2025-3967 – Itwanger Paicoding Article Handler Remote Code Execution Vulnerability

    Common Vulnerabilities and Exposures (CVEs)
    GetResponse

    Highlights

    I finally found smart finder tags that last for two years (and they’re cheaper than AirTags)

    April 2, 2025

    AirTags are great, but they have their limitations. Ugreen’s latest SmartFinder tags address some of…

    Common misconceptions about how to optimize LCP

    August 21, 2024

    Japan Considers Measures To Mandate Private Sector Cybersecurity Incident Reporting

    August 6, 2024

    Exploring Directories in Node.js: Retrieve All Files and Folders

    November 5, 2024
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

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