Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automate flutter web application using selenium webdriver

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 ?.

like image 888
Vinee-the-Pooh Avatar asked Sep 13 '25 12:09

Vinee-the-Pooh


2 Answers

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.

like image 140
Madhan Avatar answered Sep 16 '25 09:09

Madhan


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});
like image 31
Walaa Akram Avatar answered Sep 16 '25 08:09

Walaa Akram