CPM - Web App Error: HTMLPageController :: FindElement -> Timeout error. Element '****' was not found in new page
138
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 15:56 PM
Symptom
Web application plugin fails to find an element in the web page because the Identifiers used in the web form fields file are case-sensitive.
Environment
12.2;12.4;12.3;12.5;12.6 Privileged Access Manager (PAM, self-hosted) Central Policy Manager (CPM) Central Policy Manager (CPM)
Web Application Framework Developed Plugin
Cause
The Identifier used in the web form fields file does not match the case (i.e. upper, lower, or mixed case) of the element in the HTML source code of the web page.
For example, in the web form fields file (i.e. ElementsData.ini), the validation line is:
{Username}>(Verification)(SearchBy=Text)
The Username in the PVWA is 'Cyberark'. However, on the web page, the element is 'cyberark' as shown here in HTML code:
<span class="n-username" title="cyberark">cyberark</span>
The plugin searches to find text 'Cyberark' but fails to find the element, times out, and this error shows in the debug log:
29/07/2022 06:24:47.088 | Info -> AttributeTypeBase :: Find -> Waiting for element 'Cyberark' in page using type 'TEXT'.
29/07/2022 06:24:57.413 | Info -> AttributeTypeBase :: Find -> Element 'Cyberark' was not found using type 'TEXT'.
29/07/2022 06:24:57.413 | ERROR -> HTMLPageController :: FindElement -> Timeout error. Element 'Cyberark' was not found in new page.
29/07/2022 06:24:57.429 | Info -> Validation :: Run -> Validation element Idira was not found. Exception: CyberArk.WebAutomationUtils.WebBrowserException: Timeout error. Failed to find element 'Cyberark' in page. Refer to the log for more information
at CyberArk.WebAutomationUtils.HTMLPageController.FindElement(HTMLAttribute attributeData, Int32 timeoutSeconds)
at CyberArk.WebAutomationCommon.Commands.Validation.Run(CommandsParameters commandsParameters).
29/07/2022 06:24:57.429 | Info -> Validation :: Run -> END
29/07/2022 06:24:57.429 | Info -> WebPageExecuter :: RunValidations -> Validation phase failed.
Resolution
In the above example, one way to fix the issue is to change the username to 'cyberark' in the PVWA.
Ensure the case of the Identifier matches the case of the element to be found in the HMTL source code of the web page.