Hello team,
I have an error as bellow:
Caused by: com.kms.katalon.core.webui.exception.WebElementNotFoundException: Web element with id: ‘Object Repository/Page_Create instance/textarea_Add New Virtual Server_form-control ng-untouched ng-valid ng-dirty’ located by ‘By.xpath: (.//*[normalize-space(text()) and normalize-space(.)=‘Add New Virtual Server’])[1]/following::textarea[1]’ not found
and edited on selected locator. error still as same :
com.kms.katalon.core.webui.exception.WebElementNotFoundException: Web element with id: ‘Object Repository/Page_Create instance/textarea_Add New Virtual Server_form-control ng-untouched ng-valid ng-dirty’ located by ‘By.xpath: /html/body/app-root/app-pages/div/div/div/div/app-request-instance/div/div/div/div/div[2]/textarea’ not found
I still tried to edited method attributes with Xpath , i copy. But it is still not working.
Please help me fix this issue
Thank you
Hai, i dont know if this is a common problem or not. Usually, if we do recording, elements that captured will contain messy xpath and couldn’t be used again(Not all, but like 30%).
For me, the solution is to edit the object by myself, and i usually use ‘Attributes’ not ‘XPath’ (you still can put xpath on attributes tho, so it’s a win win).
From your case, i think you can try to implement this
Same error.
Caused by: com.kms.katalon.core.webui.exception.WebElementNotFoundException: Web element with id: ‘Object Repository/Page_Create instance/textarea_Add New Virtual Server_form-control ng-untouched ng-valid ng-dirty’ located by ‘By.xpath: //textarea[@placeholder = ‘Please enter reason’]’ not found
I tried many way. But it still doesn’t work.
Could you please suggest other way?