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

后端 未结 12 2005
挽巷
挽巷 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:51

    You can access the selenium send_keys method to invoke a return event like

     find_field('field2').native.send_key(:enter)
    

提交回复
热议问题