Clicking is a very basic and important activity while performing automation on web applications.
Sometimes due to a heavy DOM, or if elements are inside an iframe. We have experienced that even after Leapwork is able to validate the element, it is not able to click on it or if it does click the element, the action is not completed on the web page.
To overcome this, we would have to employ one of the many methods available within Leapwork to resolve this issue.
Method 1. Increase the Default timeout and check Await DOM change in click web element.
Method 2. Use the Find Web element with different strategies (preferably the last strategy - Root Descended Child) before Click Web element.
Method 3. Use Find Web Element and then Click Web Position block.
Method 4. Use more than one Find Web Element and then click web element, if the DOM is heavy.
Suppose the strategy is like this.
Now we can split elements into two different Find Web element blocks.
Like 'a' and 'div' in fist and rest, last two 'div' in other Find Web Element block.
Method 5. Try to split the class attribute of the web element.
If the class attribute is big, then we can split that into two conditions.
Use code - return arguments.click();
Method 6. Use Click Image or Click text blocks.
And use all the Best practices to capture the image.
For any clarification, please contact our Priority Support.