I am new to flutter. So, I want to know whether I can use selenium webdriver/java to automate a flutter web application.
I have used java / cucumber to automate web applications and used page object pattern. so, can I do the same technologies to automate a flutter web application ?.
Yes you can, because the automation code is going run on top of the application. So there is no restriction. There is a package available in flutter WebDriver maybe you can try this out . And here is the API documentation.
You can automate flutter web applications using selenium, robot framework or any automation tool, but first, you need to execute javascript command to show the tree of elements in the page then you can use them in your automation.
document.querySelector('flt-glass-pane').shadowRoot.querySelector('flt-semantics-placeholder').click({force: true});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With