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»Page Object Model: Base Page necessary?

    Page Object Model: Base Page necessary?

    May 16, 2024

    I’ve gone back and forth on this, and am sort of having a hard time deciding if a “Base page” class is necessary or a good idea.

    In most cases this base page class someone stores common functions (or sometimes common locators like headers/footers) and a lot of time these are abstract classes with abstract methods that all child page classes should have (Such as a goto/navigate method all page objects may have or similar “action” methods).

    However, I have also seen others argue that we should prefer composition over inheritance: https://stackoverflow.com/questions/49002/prefer-composition-over-inheritance which means we should use utility classes or classes that hold action methods and then use components to pull into our other PoM classes (In the case of a common component such as a header/footer)

    I’ve conflicted in whether a base class really ever has a place for PoM? Personally i’ve only ever housed methods such as a goto method that all PoM sub-classes SHOULD have but even that’s probably not 100% necessary.

    What are the benefits to one way over the other, and if there is a base class what should be in it?

    Source: Read More

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleScientists use generative AI to answer complex questions in physics
    Next Article Inclusive Tech: Hardware Accessibility Testing and Section 508

    Related Posts

    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 17, 2025
    Common Vulnerabilities and Exposures (CVEs)

    CVE-2024-47893 – VMware GPU Firmware Memory Disclosure

    May 17, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Servers of these Xbox games are facing closures in February 2025

    Development

    390,000+ WordPress Credentials Stolen via Malicious GitHub Repository Hosting PoC Exploits

    Development

    CVE-2024-42446 – APTIOV BIOS TOCTOU Race Condition Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    Development Release: Linux Mint 22.1 Beta

    Development

    Highlights

    The Role of Prosody in Spoken Question Answering

    April 1, 2025

    Spoken language understanding research to date has generally carried a heavy text perspective. Most datasets…

    Angular Material UI Guide

    January 3, 2025

    Top Books on Deep Learning and Neural Networks

    May 14, 2024

    China’s Vidu Challenges Sora with High-Definition 16-Second AI Video Clips in 1080p

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

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