Hi, I'm trying to migrate some playwright tests to elastic synthetics and getting issues running the newer playwright methods e.g. getByRole. These are recognised when I run locally but not when I push to the server. What version of playwright is supported by synthetics right now? Will the newer getBy* methods be supported?
It looks like Synthetics has shipped with Playwright 1.27.1 since v1.0.0-beta.38, which should contain the getBy* APIs. I'm unable to find however, which version of Synthetics is shipped with each version of Heartbeat/Elastic Agent, so I can't tell you which version of them you'd need to be on to leverage the features.
@BenB196 is right that the @elastic/synthetics ships with 1.27.1 since v1.0.0-beta.38. But I see Kibana has a dependency on v1.26.0. Just checking internally if that's why you're seeing a discrepancy, and when support is planned.
@jasonwhetton, if you're looking for a workaround you can use page.locator with a role specified in the selector: