Question: I’m running a pretty simple test, which requires javascript, just to check the index loads and an element is there, something like: My config for capybara looks like this (just getting rid of Puma boot logs): And here’s the ...

Question: I can’t get rspec/capybara to click my radio button. There are many similar questions on SO, but I can’t find the right answer for me. My HTML/CSS is straight from the Bootstrap site: The test code (iteration #25 ;-( ...

Question: Having this form: I am trying to test how it would be filled and then sent with Capybara: I have tried js: true in the scenario, and both fill_in and find but when I do save_and_open_page nothing is filled. ...

Question: I updated my Chrome and Chromedriver to the latest version yesterday, and since then I get the following error messages when running my Cucumber features: I try to fill a text field with Capybara’s fill_in method. While debugging I ...

Question: does anyone have an example of how to remove the records from the table before starting or after finishing the tests? My tests are working perfectly fine and all that remains is to automatically remove the records in the ...

Question: There is a column in my table that stores the active and inactive value in the STATUS column. I want to validate if when searching for the ACTIVE status if there are no INACTIVE records. How do I scan ...

Question: I just need to validate two different items in one column. For example if the column of the table writes Yes and No and I want to confirm if these items that are in the column correspond to yes ...

Question: I’m trying to click on this specific edit button. I’m using find method in ruby to do so, the problem I’m running into is that It’s not able to find the specific element. Here is my code trying to ...

Question: I’m trying to test my pagination feature with rspec/capybara. I created the articles using FactoryBot but encountered two issues. If I create the data: in a before block, the data is saved to the database and not wiped after ...

Question: I have tried all these commands but none works. I even used some tips from StackOverflow but I wasn’t happy yet.. I have tried all these commands but none works. I even used some tips from StackOverflow but I ...