webdriverio: Report failed selector where `Element is not clickable`
The problem
Where an element is not clickable because another element would receive the click, wdio should report the selector which failed to help in debugging the test. Presently it reports the elementId and the element which would receive the click.
eg We should know that the command failed to click .my-class
browser.click('.my-class')
happy to work on the fix if I can be pointed in the right direction
Environment
- WebdriverIO version: v4.0.9
- Node.js version:v4.4.7
- wdio testrunner
- synchronous
Details
Describe in more detail the problem you have been experiencing, if necessary.
Link to Selenium/WebdriverIO logs
unknown error: Element is not clickable at point (517, 182). Other element would receive the click: <div class="lrn-qe-wait-panel" style="opacity: 0.0120416;">...</div>
running chrome
RuntimeError: unknown error: Element is not clickable at point (517, 182). Other element would receive the click: <div class="lrn-qe-wait-panel" style="opacity: 0.0120416;">...</div>
at elementIdClick("15") - click.js:52:22
Code To Reproduce Issue [ Good To Have ]
can add if needed
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 18 (14 by maintainers)
In v5 we will have an autofix for this issue. Closing.