Retrial iteration

  • Check if element is visible on page
    • If element is not visible on page – retry the whole locator logic for upto 3 times for the element to become visible on the page
    • If it fails to become visible even after 3 attempts fail the step – error code E0004
  • If element is visible
    • Wait till it becomes clickable – wait for upto 10s
    • Then click the element
      • Click on the 4 extremities of the element – this helps in case the element is being hidden or overlaid and only a part of the element is visible on screen
      • If that also fails – try to perform a mouse click
      • If mouse click also fails – check if the element is a button incorrectly identified as a span or a div, if yes, remove the span or div tags and search for the button and try to click again.
    • If click still fails – try to relocate the element again to see if the behaviour will change – a total of 3 attempts are made
      • If the 3 attempts still fails – maximize the screen resolution and try clicking again – this is to check if screen resolution is some how hampering the clicking of the element
      • The try to click using javascript
      • Then try Try another mouse click
    • If click still fails – fail the step
  • If element is not visible – use javascript to click

Have other questions? Access our full knowledge base!

Verified by MonsterInsights