C# OpenQA.Selenium.Support.PageObjects.FindsBy参数

C# OpenQA.Selenium.Support.PageObjects.FindsBy参数,c#,selenium-webdriver,C#,Selenium Webdriver,OpenQA.Selenium.Support.PageObjects中FindsBy属性的优先级参数是什么?我对图书馆的C版本感兴趣 有关于这方面的文件吗?根据Arran的评论,答案是: /// <summary> /// Gets or sets a value indicating where this attribute should be evaluated relative to other instances /// of this attrib

OpenQA.Selenium.Support.PageObjects中FindsBy属性的优先级参数是什么?我对图书馆的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; 
//
///获取或设置一个值,该值指示应相对于其他实例计算此属性的位置
///修饰同一类成员的此属性的。
/// 
[默认值(0)]
公共int优先级{get;set;

您可以在以下位置下载源代码:这样您就可以准确地看到代码在做什么。整个C#API的文档都在这里:(虽然没有提到优先级属性,因此可能有点过时)。似乎针对此问题实现了优先级:查看源代码,似乎表明当您使用PageFactory.InitElements初始化PageObject时,优先级用于排序FindByAttributes。@Arran感谢您为我指出代码,在这种情况下,它始终是最好的信息源。