Manual input from user while running selenium IDE script

后端 未结 9 1380
死守一世寂寞
死守一世寂寞 2021-02-05 19:50

can user is able to give manual input while running selenium IDE script? For ex. If there is name field then can we open input box everytime script runs so that user can give hi

9条回答
  •  走了就别回头了
    2021-02-05 20:14

    As of 2020 using Selenium IDE 3.16.1, I found the following config worked by the suggested answers above. (I re-answered the question as above answers did not clearly combined all pieces)

    Command : execute script
    
    Target : return prompt("Question Text","Default value");
    
    Value : yourVariableName
    

    and fill in the input box by the stored var:

    Command : type
    
    Target : (your selector)
    
    Value : ${yourVariableName}
    

提交回复
热议问题