【发布时间】:2023-03-12 14:51:02
【问题描述】:
我正在尝试在使用 selenium firefox 打开的页面上的隐藏文本区域中输入字符串。我已经让它返回 html,但无法弄清楚如何编辑 html,就像我在检查元素时能够做到的那样。我对编码很陌生,所以请原谅我听起来多么无知。
这是我要输入的 html:
<textarea id = "xxx"
name = "xxx"
class = "xxx"
style = "border : 1px solid #c1c1c1;
display : none;
height : 40px;
margin : 10px 25px;
padding : 0px;
resize : none;
width : 250px;">
</textarea>
我知道我要输入需要在两个><之间输入,但是我不知道如何1.使用python输入文本,以及2.如果我输入的文本会有如果 textarea 仍然设置为 display : none。
【问题讨论】: