You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I define a PartialPageObject I would expect it to be a reusable component so that you do not have to re-define it on every single page and that you do not need to rely on IDs to select sub components of it.
For example consider a kind of message box that has a button inside of it which is used multiple times on different pages/same page but each with a different ID, possibly generated from a template like this
Good request for sure.
If no Locate for a PartialPageObject and thus no scope is provided, it should keep the current behaviour and search the elements globally.
If I define a PartialPageObject I would expect it to be a reusable component so that you do not have to re-define it on every single page and that you do not need to rely on IDs to select sub components of it.
For example consider a kind of message box that has a button inside of it which is used multiple times on different pages/same page but each with a different ID, possibly generated from a template like this
PageObject
Now on the page which uses 2 of them I would want to define it like this WITHOUT relying on extra IDs to access the Buttons
PageObject
Considering how every single Locator is using an Xpath anyway a simple way would be to concat the Xpaths.
The text was updated successfully, but these errors were encountered: