Cucumber, capybara and selenium - Submitting a form without a button

后端 未结 12 1873
挽巷
挽巷 2021-02-01 18:14

I have a test using Cucumber, capybara and selenium driver. This test should go to a form and submit it. The normal text would be

  Scenario: Fill form
    Give         


        
12条回答
  •  遥遥无期
    2021-02-01 18:45

    I'd recommend you add a submit button, then hide it with CSS. Then you can test the form submission, but still get the user behavior you want.

提交回复
热议问题