Issue
Angular 11.0.2
web application
To check if validation message is displayed or not when value is not selected from the drop-down, I am clicking outside of the drop-down, but getting ElementNotInteractableException
Also In the inspector window, I am not able to inspect any of the elements when the drop-down is visible.
Getting div.cdk-overlay-backdrop cdk-overlay-transparent-backdrop cdk-overlay-backdrop-showing
when trying to inspect.
Please find the below screenshot for same.
Solution
There are two ways to handle it , either you can click on outside using tag name or use mouse click using co-ordinates
Actions action = new Actions(driver); action.moveByOffset(0, 0).click().build().perform();
driver.findElement(By.tagName("body")).click()
Answered By - Aruna
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.