The essence of the problem is that the page is written in the Flutter framework. I need to use Selenium to click on the field, but I can’t get its XPATH until I click on the field.
page before click
page after click
When I hover the mouse over the field, the cursor value changes from default to text.
Maybe you can somehow move the mouse using Selenium to relative coordinates and make a click?
Or maybe you need to make some manipulations with the JS file when loading the page?
2
Answers
We can’t give you a complete answer without access to the page or at least the relevant HTML before and after the click. The basic answer is that you need to click element #1 (the "Paste here or type…" area) to expose element #2 (the TEXTAREA element in the screenshot) then use
.sendkeys()
to input the desired text.Another option is to:
This is with the assumption that "//flt-text-editing-host" is clickable and it will trigger the display of the input element.