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.
我正在尝试使用 @Given 注释来识别 Web 元素。但是当我输入为 @Given(XPath=="") 时,它会引发错误,因为 XPath 不是变量或方法。我试图导入不同的库也一样,但它仍然抛出错误。
@Given是注释来描述我想的平静的测试步骤。要定位和使用元素,PageFactory您应该使用@Findby. 如果我错了,请纠正我,因为我没有密切合作Serenity。
@Given
PageFactory
@Findby
Serenity