I am trying to write an integration test using Capybara and capybara-webkit. I am trying to confirm a warning dialogue. The document for Capibra-WebKit is asked to set the Capybara.javascript_driver =: webkit
, but I do not know how this capacitor will affect :: PageWriter, which I understand. Answer to accept_alert
:
def test_update_key Capybara.javascript_driver =: Go to webkit account_path account (: pending_count) click_link "edit_account_key" page.accept_alert "Did you edit it The account key? "Because of the error on this line, this code gives me the following error: CAPIBARA :: NotSupportedByDriverError exception: CAPABRA :: driver :: base # accept_model
I am currently using Rail (4.0.13), Capibar (2.4.4), CapBar-WebKit (1.4.1)
< Div c Lass = "post-text" itemprop = "text">
I do not know what to do capybara.javascript_driver =: webkit
, but it did nothing for me. In the end I did my tests On the top of this, solve this issue by putting Capybara.current_driver =: webkit
.
However, WebKit was still unable to accept the warning; I have just changed the driver Selenium for now, because without problems, I wanted to use webkit because it is headless and is reportedly fast, but I do not have so many tests yet, so this Speed at point is not an issue. Will have to come again later.
No comments:
Post a Comment