Set hidden input value in Selenium?

后端 未结 2 1396
粉色の甜心
粉色の甜心 2021-01-02 12:03

We have hidden input fields on our form and we need Selenium to set the value of those fields. What is the best way to set the value of hidden inputs via Selenium IDE?

2条回答
  •  既然无缘
    2021-01-02 12:23

    Late to the party...

    When you use the IDE, you can add the command type with target id=yourID and value field value, this seems to work.

    Copy the text below and paste it in the IDE to try it out

    
        type
        id=yourID
        field value
    
    

    This seems to work for me (Selenium 2.9.1)

提交回复
热议问题