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
For POM structures, it's best to save locators in the following format: private (By, string) elementLocator = (By.XPATH, "//path/to//object")
and then use them for all the find object related methods.
This approach is better because it allows the user to not only change the locator value, but also the strategy without changing anything else in the code.
===========
After finding out that in Python we cannot have multiple methods with the same name even if they have different signatures, we agreed that a better approach would be to create 2 new AltDrivers, one for Unity and one for Unreal, which would anyway have some specific methods for each platform, and these 2 drivers would also have different methods for finding objects that would use the AltBy objects as locators.
The text was updated successfully, but these errors were encountered:
rucindrea
changed the title
Create FindObject wrappers that use (By, value) tuples to find objects
Create AltDriverUnity and AltDriverUnreal and FindObject wrappers that use AltBy to find objects
Dec 14, 2024
Description
For POM structures, it's best to save locators in the following format:
private (By, string) elementLocator = (By.XPATH, "//path/to//object")
and then use them for all the find object related methods.
This approach is better because it allows the user to not only change the locator value, but also the strategy without changing anything else in the code.
===========
After finding out that in Python we cannot have multiple methods with the same name even if they have different signatures, we agreed that a better approach would be to create 2 new AltDrivers, one for Unity and one for Unreal, which would anyway have some specific methods for each platform, and these 2 drivers would also have different methods for finding objects that would use the AltBy objects as locators.
The text was updated successfully, but these errors were encountered: