I’m testing a scenario in Rails with Cucumber, and it comes back saying it can’t find the edit link to click on. If I go to the page myself, it’s there. Obviously I’m doing something wrong, but I can’t see it.
If I add the @selenium tag before my scenario, it executes the tests in Firefox. But it I see the browser open and close, and unless it needs interaction from me (like to confirm a delete), it passes by before I can see what it’s doing.
Is there a way to see what it’s seeing in the browser and move through step-by-step?
To see what is displayed in the browser at a specific point in time, add this step to your scenario:
You might not get all the styling, it depends.
There’s another thing you could try too: add a step that looks something like this:
That should give you 30 seconds to look at the page while its displayed in the browser.