简体   繁体   中英

Watir-webdriver can't see an input tag inside a popup

I keep getting Element is not currently visible and cannot be interacted with after a javascript successfully pops up a dialogue div that contains some tags.

I can locate the input tags whichever way I want but I can't set them to anything because they're not visible, even though they clearly are.

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

Is there a way to force an element to be visible while using watir-webdriver?

Been banging my head against the wall for hours, would really appreciate some help.

PS. the buttons inside of a popup are nice and clickable, the inputs are not :(

多亏了那些参与进来的家伙。问题最终成为了一个偏远的部门,我忘了检查透明度属性。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM