Open bessey opened 2 years ago
I think in this case my issue is that await browser.wait(Until.elementIsNotVisible(...))
does not work how I expected it to. My hope was I could validate that an element that was in the DOM is no longer in the DOM, however I guess it's actually still supposed to find it, but for it to be hidden.
I am not sure there is a good pattern to validate an element you know was in the DOM earlier is not anymore.
I am trialing Element for the first time today (2.X if it matters), and while in general it ROCKS there's one area I am struggling with: debugging a WIP test step. There's plenty of docs on the happy path by which I mean using the Browser / By / Until APIs, but what I have not found is what the heck you are supposed to do when e.g. an element is not found and the test times out, even though you believe it is on the page.
For example, given this test step
and this output
How am I meant to deduce what selector is failing? I expected a stack trace to a line in the test file and perhaps even a function name, but I get no such thing. As far as I can tell there is no guidance on what to do in this situation in the docs.
Describe the solution you'd like
Better stack traces, but failing that, guidance in the docs on how to identify the failing line and steps you can take to debug.
Describe alternatives you've considered
I did try just scouring GH Issues for people who have had the same problem, but I had no luck.