Hi Team,
I am trying to automate the below toggle button
div class="toggle-slide"><div class="toggle-inner" style="width: 120px; margin-left: -50px;"><div class="toggle-on" style="height: 20px; width: 60px; text-indent: -6.66667px; line-height: 20px;">Yes</div><div class="toggle-blob" style="height: 20px; width: 20px; margin-left: -10px;"></div><div class="toggle-off active" style="height: 20px; width: 60px; margin-left: -10px; text-indent: 6.66667px; line-height: 20px;">No</div></div></div>
and i am able to run the test successfully when i am running with chrome and i am getting below error while running same via headless mode.
Unable to click on object 'Object Repository/Page_Add Address/MailOption' (Root cause: com.kms.katalon.core.exception.StepFailedException: Unable to click on object 'Object Repository/Page_Add Address/MailOption'
Caused by: org.openqa.selenium.ElementClickInterceptedException: element click intercepted: Element <div class="toggle-off active" style="height: 20px; width: 60px; margin-left: -10px; text-indent: 6.66667px; line-height: 20px;">...</div> is not clickable at point (842, 860). Other element would receive the click: <li class="select2-results__option select2-results__option--highlighted" id="select2-P37_ACCOMMODATION_STATUS-result-0og3-75" role="treeitem" aria-selected="false">...</li>
(Session info: headless chrome=75.0.3770.90)
My code:
WebUI.click(findTestObject(‘Page_Add Address/MailOption’))
WebUI.click(findTestObject(‘Page_Add Address/Visit’))
Object property:




