我正忙于Geb/Spock中的e2e测试,我想知道如何添加自定义消息。: "the contact is shown in the search results"}
我认为“联系人显示在搜索结果中”的文本应该会出现在错误消息中在Geb of Spock中,是否有其他方法可以打印自定义消息,以便更清晰?特别是对于'at checkers‘,我希望有自定义的消息,
我想遍历页面列表,验证每个页面的内容
使用GEB,我想迭代遍历eg。然后,https://github.com/trending访问trending中的每一页并验证标题,然后继续下一页。org.openqa.selenium.StaleElementReferenceException: stale element reference: element is not attached to the page document错误困扰着我import org.openqa.se
我首先进入登录页面,然后单击登录按钮,不输入电子邮件和密码来验证错误消息。我将添加其他步骤,如电子邮件,但没有密码和不正确的密码电子邮件,但我首先需要让这个测试工作。package loginPageTests
import geb.Page
classloginPage.loginError.text() == "Please enter your email and pass