Watir-webdriver does not see input tag inside popup

I keep getting Element is not currently visible and cannot be interacted with after successfully creating a javascript div dialog containing some tags.

I can find the input tags, whatever I want, but I can’t install them on anything, because they are not visible, although they are.

I tried running .execute_script , which changes the CSS style of the input tags to position:absolute or z-index:999 or display:block , but that doesn't seem to matter.

Is there a way to make an element be visible when using watir-webdriver?

He quickly banged his head on the wall for hours, would be very grateful for the help.

PS. the buttons inside the popup are nice and interactive, the inputs are not: (

+4
source share
1 answer

Thanks guys that crashed. The problem ended up being an abandoned div, I forgot to check the opacity attributes.

+2
source

Source: https://habr.com/ru/post/1385807/


All Articles