How to Run Robot Framework Scripts on Websites Developed with Flet Framework (Python Package)

Hello,

Is it possible to run Robot Framework scripts on websites developed using the FLET framework? FLET is a Python package that allows for website creation without requiring front-end code. If it is possible, what are the methods to achieve this?

Thanks

@dp8500 Since the FLET framework uses Flutter I Think it’s possible, but I haven’t tried it myself.
First you have to to execute the following JavaScript command to see the tree of elements in the shadow DOM with

document.querySelector('flt-glass-pane').shadowRoot.querySelector('flt-semantics-placeholder').click({force: true});

Then you should be able to use the elements in the shadow DOM.

1 Like

Hi @falcon030. Thanks for your response.

I have tried checking running the command but observed Type Error.


Thanks.

@dp8500 Is the app publicly accessible? Then I could take a look at why it isn’t working.

@falcon030 It’s not accessible publicly. If possible can you try with any sample flet web application? Sample codes are available at “GitHub - flet-dev/examples: Flet sample applications

@dp8500 I tried one of the examples and it seems that the example and also your app don’t contain the tag, which is apperently necessary for this to work. See also this article Accessibility in Flutter on the Web | by Thomas Steiner | Flutter | Medium

Thanks for the update @falcon030. I have tried multiple ways but it didn’t worked out for me.