alttester / alttester/AltTester-Unity-SDK

Create AltDriverUnity and AltDriverUnreal and FindObject wrappers that use AltBy to find objects

未关闭
#1,721 2 条评论 0 个 reaction 已指派 1 人 已被 @rucindrea 认领 在 GitHub 查看
2.2.6 feature
主要语言
C#
星标
121
派生
24
PR 合并指标
30 天内没有已合并 PR

描述

## 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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。