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

后端 未结 12 1986
挽巷
挽巷 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条回答
  •  猫巷女王i
    2021-02-01 19:02

    Simply put: you can't.

    Some browsers will not allow you to submit a form without a submit button at all (most notably Internet Explorer <= 6). So this kind of form is a bad idea to begin with. Add a submit button and position it off the screen with CSS.

提交回复
热议问题