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

    Hostinger
    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-48205 – TYPO3 sr_feuser_register Insecure Direct Object Reference

    May 21, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Eliminating Fixed Learning Rate Schedules in Machine Learning: How Schedule-Free AdamW Optimizer Achieves Superior Accuracy and Efficiency Across Diverse Applications

    Development

    5 ways to turn AI’s time-saving magic into your productivity superpower

    News & Updates

    The STALKER trilogy’s promised mod support has come to Xbox consoles, and you’re allowed to cheese achievements with it

    Development

    0-Click NTLM Authentication Bypass Hits Microsoft Telnet Server, PoC Releases, No Patch

    Security

    Highlights

    Microsoft details how to fix Windows 10/11 blue screen of death (BSOD) issue

    May 13, 2025

    If you have seen that sudden, blue screen with a crash message no one wants…

    This AI Paper Introduces TabM: An Efficient Ensemble-Based Deep Learning Model for Robust Tabular Data Processing

    November 14, 2024

    CodeSOD: An Argument With QA

    March 6, 2025

    I’ve been testing the giant Echo Show 21 for weeks – here’s who should buy it (and who shouldn’t)

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

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