I am new to Serenity and Protractor, so need your help for below query. Using - Protractor, Chai assertion, Screenplay serenity, Cucumber, TypeScript
I have below 2 locators in my locator file:
static test1 = Target.the("test1).located(by.xpath(...**...);
static test2 = Target.the("test2).located(by.xpath(...**...);
I have to compare test1 and test2 values.
Steps.ts file:
expect(actor.toSee(Text.of(locatorClass.test1))).to.eventually.equal("21");
If I am passing some constant value, it's working. but I have to pass other locator. How can I compare this two locators?