Open Castone22 opened 5 years ago
No description provided.
Allows oz to create attempt to infer the element type from an xpath if it is used.
That's the 'what' but what is the 'why'? :)
To reduce replication :)
Of what? please provide a use case (yes I know we talked about this one, but I am trying to keep things clean) :)
Might make sense to make this also work for css selectors... though given they are less likely to specify the exact element type you're looking for, and that they have a less standard format than xpaths, might be a lot of work for very little gain.
What is the current status of this merge request? Are we going forward with this pattern, or does it require some discussion?
Attempts to reduce replication by checking if the element type is present within the xpath if it's provided, then passes that as a watir element, still supports manual overriding failing an auto detection.
Currently:
Given the element type was actually provided in the xpath (
h2[@class="fancy-text"]
]), it makes sense for Oz to be able to infer it from the path, letting us do: