jquery masked input plugin to not clear field when errored
Date : March 29 2020, 07:55 AM
|
Capybara::FrozenInTime error in integration specs using Rspec + Timecop + Capybara + Capybara Webkit
Date : March 29 2020, 07:55 AM
it fixes the issue I'm seeing an error in some integration specs, using rspec, capybara, capybara-webkit and timecop. , The solution I found was to add before :each do
Timecop.return
end
|
How to append to a field in Capybara (Webdriver) rather than clear and populate
Date : March 29 2020, 07:55 AM
wish of those help Looks like send_keys will be your friend. Try find_field('Your field').native.send_keys('some text')
|
Rspec Capybara find field not functioning
Date : March 29 2020, 07:55 AM
fixed the issue. Will look into that further OK, after much meandering through Capybara's source files I found the problem. It seems that the #find_field method doesn't work properly when using Capybara-webkit. The method only failed on examples that had the js: true argument, so that should have been the first clue. Anyway it seems that the cause of this is some method naming conflict between capybara and capybara-webkit, but I didn't analyze it too closely and so I can't be sure. I changed the find_field('from_date') to find('#from_date') and everything works now. It also worked when changing to the :rack_test driver, but since I need webkit that's what I'll stick too. Is this issue documented anywhere??
|
Why is RSpec 2.13.0 / Capybara 2.1.0 not able to fill_in a field by it's label text in this test in Rails 4?
Tag : ruby , By : user133834
Date : March 29 2020, 07:55 AM
I wish did fix the issue. HTML ids are case sensitive and you've defined the Team label as applying to the id prepay_subject_Team, which does not appear in your page. Only the id prepay_subject_team exists (i.e. lower case t in Team). If the capitalization in the for attribute of a label element doesn't match the capitalization of the id attribute of it's matching input element, Capybara can't find the input element.
|