I'm practicing to interact with element (nopCommerce
domain).
But encountered some problems, when trying to perform sendKey
to an invisible element.
This is an input field of product tags, which becomes invisible by CSS
(position: absolute and left: -99999px
).
Below this input field is a <ul>
tag which takes the role of it.
I've listed below all the solutions I can think about so far,
Click (focus) to
ul
element and try tosendKey
to ul tag => of course it doesn't work, because this element is not interactable by keyboard.Directly
sendKey
to input field -> also not working.Make this input field visible with
jsExecutor
and try tosendKey
to it -> also not working.Set value for this input field with
setAttribute
method ofjsExecutor
-> can set value for input field, however, when you click save button and come back, product tags will not be saved (not working)
This is domain, which contains elements I'm trying to interact with:
https://admin-demo.nopcommerce.com/Admin/Product/Edit/3
I'm struggling to find for more than three days, but nothing seems to work.
I'd really appreciate if anyone can give me some idea and solution.