Cucumber test with rails 4 throws error: element is not attached to the page document Cucumber test with rails 4 throws error: element is not attached to the page document selenium selenium

Cucumber test with rails 4 throws error: element is not attached to the page document


This error comes if you look for an element on the page which is not loaded yet or expires because the dom has changed in the previous step. Make sure that when you run the your test cases as bulk each cases should be isolated from others. You should check that the element you want to interact is on the page if not add extra steps to make sure it loads there.