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.
Thanks for the reply! That's promising - I'm testing using the managed monitor instances right now but I can try using a private location instead to see if that works...
@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:
Thanks, that explains what I'm seeing. I'm trying to combine migrating our tests with updating them so it would be really useful to know a rough timeframe.
Will do. Just to check, when encountering these issues are you running them on public locations? Just checking since you mentioned you would try private locations instead.
Hi @jasonwhetton , got an update from the team that the image being used was on the old version and a prod change was pushed. Can you try with the latest and let us know if you're still having issues?
@jasonwhetton for now, all of them are not supported. but we have an issue to open to do that. Please leave a comment there if you have feedback. We will consider it and try to priorities it soon
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.