Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
OpenQA.Selenium.Support.PageObjects 的 FindsBy 属性的 Priority 参数有什么作用?我对该库的 C# 版本感兴趣。
有没有关于这方面的文件?
根据 Arran 的评论,答案是:
/// <summary> /// Gets or sets a value indicating where this attribute should be evaluated relative to other instances /// of this attribute decorating the same class member. /// </summary> [DefaultValue(0)] public int Priority { get; set;