admin管理员组文章数量:1122832
So currently I have been developing a flutter application that is now embedded in to a react web application. When we get to a certain point in the application we switch and load a flutter app flutter for a specific flow.
We currently use playwright as a testing suite for out applications and it works very well except for the new flutter portion. I am having issue piercing the canvas. Has anyone had any luck using :
SemanticsBinding.instance.ensureSemantics();
Specifically looking at web applications. Flutter in our mobile application seems to work without issue using Appium with some tweaks and using the semantics widgets wrapping custom widgets. The web implementation is the issue.
Are they any resources for using Semantics for end to end tests in place of the usual element selectors.
In a standalone version it seems to work. I see the sematic tree and node populate. Simply by using the semantics biding but playwright codegen sees some nodes and gives me the first set of selectors but when I hit continue I can interreact with the page but it is not recording that I am selecting anything which is a regression to the original problem of not seeing node. But in the element inspector I can see unique nodes.
So currently I have been developing a flutter application that is now embedded in to a react web application. When we get to a certain point in the application we switch and load a flutter app flutter for a specific flow.
We currently use playwright as a testing suite for out applications and it works very well except for the new flutter portion. I am having issue piercing the canvas. Has anyone had any luck using :
SemanticsBinding.instance.ensureSemantics();
Specifically looking at web applications. Flutter in our mobile application seems to work without issue using Appium with some tweaks and using the semantics widgets wrapping custom widgets. The web implementation is the issue.
Are they any resources for using Semantics for end to end tests in place of the usual element selectors.
In a standalone version it seems to work. I see the sematic tree and node populate. Simply by using the semantics biding but playwright codegen sees some nodes and gives me the first set of selectors but when I hit continue I can interreact with the page but it is not recording that I am selecting anything which is a regression to the original problem of not seeing node. But in the element inspector I can see unique nodes.
Share Improve this question asked Nov 23, 2024 at 4:59 mmmikemmmike 111 bronze badge1 Answer
Reset to default 0There is no official support for Flutter in Playwright, nor are they prioritizing adding it anytime soon.
See this thread for more information (and potential future updates, as this might change): https://github.com/microsoft/playwright/issues/26587#issuecomment-1693876574
本文标签: Using Playwright for end to end tests of embedded flutter applicationStack Overflow
版权声明:本文标题:Using Playwright for end to end tests of embedded flutter application - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736299636a1930528.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论