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 would I retrieve links of every page, and through those links, I want to retrieve links of the products

    How would I retrieve links of every page, and through those links, I want to retrieve links of the products

    June 29, 2024

    next_btn = driver.find_element_by_xpath(“//a[@class=’ge-49M’]”)
    for i in next_btn:
    driver.get(i)
    lnks = driver.find_elements_by_xpath(“//a[@class=’_2UzuFa’]”)
    for z in lnks:
    href_new.append(z.get_attribute(‘href’))

    Here I am trying to retrieve all the links present in every page like(1,2,3,4,5) and from these links I want to retrieve the links of the products.

    TypeError Traceback (most recent call last)
    <ipython-input-118-b4d6c76aecdf> in <module>
    1 next_btn = driver.find_element_by_xpath(“//a[@class=’ge-49M’]”)
    —-> 2 for i in next_btn:
    3 driver.get(i)
    4 lnks = driver.find_elements_by_xpath(“//a[@class=’_2UzuFa’]”)
    5 for z in lnks:

    TypeError: ‘WebElement’ object is not iterable

    But it’s throwing this error.

    Source: Read More

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleLook out, Meta Ray-Bans: These are the world’s first smart glasses with GPT-4o
    Next Article JMeter: How to resolve javax.net.ssl.SSLHandshakeException Error

    Related Posts

    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 17, 2025
    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-48187 – RAGFlow Authentication Bypass

    May 17, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    A Comprehensive Review of Survey on Efficient Multimodal Large Language Models

    Development

    FCC clears Surface Laptop 13″, Pro 12″ with Snapdragon, rounded design

    Operating Systems

    The Great Escape

    Artificial Intelligence

    Wyze Cam adds ‘no big deal’ AI filter to cut down on your notifications

    News & Updates

    Highlights

    News & Updates

    Is The First Berserker: Khazan on Xbox Game Pass?

    March 25, 2025

    NEXON’s new The First Berserker: Khan Soulslike ARPG is here, but is it on Xbox…

    Cyberespionage Threat: APT-C-60 Targets East Asia with SpyGlace

    August 30, 2024

    How Middleware Transforms Request Handling in Web Development

    November 27, 2024

    Windows 11 should Sherlock this audio app — but I hope it doesn’t

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

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