So our web application also has native applications for Windows and macOS so we browser test can be done using any framework but we have 1-2 test cases that require validation from native application which will be opening after a user choose to switch from web part to native part using protocol handler, for e.g our website will prompt whether you want to open thin in application just like teams and Slack and open a native application on window or mac, which we are thinking of doing by integrating shell scripting and take screenshots, so I have a confusion with these two frameworks. or what other framework I can use to get my work done.
Buddy ,you should go with RObot framework as per my experience,let me be clear i dont have any experience in playwright. We have similar kind of situation that time we used robot framework for native Web ,api and Android app . RF gives you privileg to automate any kind of application . Rf is open source , timely library upgrade like selenium 4 webdriver manager ,sikuli . And it is easy to maintain easy to learn
Based on your requirements, both Robot Framework and Playwright are suitable for browser testing. However, you mentioned that you have 1-2 test cases that require validation from native applications. In this case, Robot Framework might be a better choice as it has a wider range of libraries and can be extended to support testing of native applications1.
That being said, Playwright is a great choice for browser automation and has a simple syntax. It also has the ability to connect directly to the browser’s API and has full control of the browser and its content.
If you are looking for other options, you might want to consider Selenium WebDriver which is a popular choice for browser automation. Alternatively, you could also look into Cypress which is another popular framework for browser testing.