我是 Serenity 和 Protractor 的新手,因此需要您的帮助来完成以下查询。使用 - Protractor、Chai 断言、Screenplay serenity、Cucumber、TypeScript
我的定位器文件中有以下 2 个定位器:
static test1 = Target.the("test1).located(by.xpath(...**...);
static test2 = Target.the("test2).located(by.xpath(...**...);
我必须比较 test1 和 test2 的值。
Steps.ts 文件:
expect(actor.toSee(Text.of(locatorClass.test1))).to.eventually.equal("21");
如果我传递一些恒定值,它就可以工作。但我必须通过其他定位器。如何比较这两个定位器?