I am using Selenium and Java to write a test.
I need to double click on a web element so I use:
but the problem is that while double-clicking the element changes, in other words, when you click on the element, it becomes highlighted, so when you double click, it gets highlighted and unhighlighted causing me to the
stale web element error.
My solution was:
is this fine or are there any better way to handle this issue?