Manual input from user while running selenium IDE script

后端 未结 9 1363
死守一世寂寞
死守一世寂寞 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:09

    Use Thread.Sleep(20000); This will freeze everything for 20s and you can enter whatever fields you want to enter manually in that time period

    0 讨论(0)
  • 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}
    
    0 讨论(0)
  • 2021-02-05 20:16

    Since you specifically asked about Selenium IDE, the answer is no. But you can pause the script and let the user type their name, then have the script continue. I've heard of folks using this technique for handling CAPTCHAs, which of course are not easily automatable.

    0 讨论(0)
提交回复
热议问题