A reduced code base
Skipping the POM reduces the amount of code you have to maintain. This can be particularly beneficial in smaller projects or proof-of-concept implementations, where quick development is more important than long-term maintainability.
While a “text-based” approach has its merits, it’s crucial to note that this is not a one-size-fits-all solution. It is intended to remain highly reliable, reducing the amount of maintenance required.
In this chapter, we will enhance our element location by passing just text. Which method is used will provide a clue as to the node types to return for consideration. What does it mean if we can just click Add To Cart, enter setValueAdv("First name", "Paul")
into the First Name field, or even select 2 from the Number of Guests list?
We will enhance our three custom functions, allowing them to identify elements only based on a string. In addition to passing an object, a simple text string...