Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Android and Electron automation for Java #1445

Closed
dtomantest opened this issue Dec 21, 2023 · 3 comments
Closed

[Feature] Android and Electron automation for Java #1445

dtomantest opened this issue Dec 21, 2023 · 3 comments

Comments

@dtomantest
Copy link

Hi Playwright team,

I have checked the docs for the Node.js version of Playwright and I have seen that it supports Android and Electron application testing, though it's still in an experimental phase. I am also aware of the simulation feature of Playwright, but after reading this I have some concerns if this really gives me enough confidence.

So I came to the conclusion that some sort of emulation/real-device testing should support the simulated testing and was wondering if the Java language port will support it in the near future?

The company I work at would like to have a single authentication module instead of native ones and utilize WebViews during login flows (same as Microsoft and Google have for example) and I am looking for a test automation tool to support it.

Thank you for your time.

@yury-s
Copy link
Member

yury-s commented Dec 21, 2023

So I came to the conclusion that some sort of emulation/real-device testing should support the simulated testing and was wondering if the Java language port will support it in the near future?

If you are asking about testing on real devices, it is tracked in microsoft/playwright#1122

Support for Electron in Java is tracked by #830. We are not planning to port Android/Electron APIs from Node.js to java at the moment, our focus is on testing standard web features, available across all browsers.

Can you clarify what exactly you are requesting?

The company I work at would like to have a single authentication module instead of native ones and utilize WebViews during login flows (same as Microsoft and Google have for example) and I am looking for a test automation tool to support it.

You might benefit from this API in Node.js Playwright. There are no plans to port it to Java at the moment.

@dtomantest
Copy link
Author

Hi,

thanks for the response.

Regarding your question, I was just curious if Playwright is planning to support not just cross-browser testing for Java, but electron and mobile as well. We have native apps currently, but login flows will be replaced with a single web based solution which will be loaded into webviews in our apps. That's why it would be helpful for me to have a single framework that is able to test all this together.

This maybe is not Playwrights territory, but I have been searching for differences between UI testing in actual Chrome browser using device toolbar and in Android Webview. If I am correct both use chromium engine under the hood, but still not sure about the confidence it can give me about the latter while executing test against the former. If you have experience with this your answer would be much appreciated.

Thank you.

@yury-s
Copy link
Member

yury-s commented Dec 22, 2023

In Node.js we have AndroidWebView class for that, we are not planning to port it to java as of today. You may still get some luck if you find a way to connect to the web view via connectOverCDP. Closing this issue as there are no plans to port android support to java.

@yury-s yury-s closed this as completed Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants