Rspec + Capybara : How to click on alert box

后端 未结 6 1281
梦谈多话
梦谈多话 2020-12-29 19:15

I have gone through the post of capybara + click on alert box but nothing seems to be work. Following is my scenario:

Scenario: When I click update

6条回答
  •  既然无缘
    2020-12-29 19:33

    page.accept_alert
    

    worked for me using Selenium. Other drivers will probably have their own syntax.

    As Jillian Foley mentioned, it seems that other answers have been deprecated.

提交回复
热议问题