- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
09-04-2019 08:05 AM
I am using VMWARE VSPHERE WEB DOMAIN connection component that i get from MarketPlace. When I try to connect to web, I get "Timeout error. Failed to find element 'username' in page. Refer to the log for more information." error.
What is the cause of the problem?
PSMDU014E Error performing dispatcher's request [GetSessionPropertyBufferLength]. Reason: PSMDU032E Session property [BrowserPath] is not present
PSMDU014E Error performing dispatcher's request [GetSessionPropertyBufferLength]. Reason: PSMDU032E Session property [DriverFolder] is not present
PSMDU014E Error performing dispatcher's request [GetSessionPropertyBufferLength]. Reason: PSMDU032E Session property [EnableTrace] is not present
PSMDU014E Error performing dispatcher's request [GetSessionPropertyBufferLength]. Reason: PSMDU032E Session property [WaitBeforeElementsLoad] is not present
PSMDU018E Dispatcher error: [HTMLPageController :: FindElement -> Timeout error. Element 'username' was not found in new page. ]
PSMDU018E Dispatcher error: [WebFormDispatcher :: HandleException -> CyberArk.WebAutomationUtils.WebBrowserException: Timeout error. Failed to find element 'username' in page. Refer to the log for more information
at CyberArk.WebAutomationUtils.HTMLPageController.FindElement(HTMLAttribute attributeData, Int32 timeoutSeconds)
at CyberArk.WebAutomationCommon.Commands.TextInput.Run(CommandsParameters commandsParameters)
at CyberArk.WebAutomationCommon.WebPageExecuter.RunLoginPhase(List`1 commands, Int32 lastClickCommandIndex)
at CyberArk.WebAutomationCommon.WebPageExecuter.RunCommands(List`1 commands, Boolean isRunValidation)
at CyberArk.PSM.WebAppDispatcher.WebFormDispatcher.ExecuteLogin(IExecuter actionExecuter)]
PSMDU018E Dispatcher error: [ConnectionComponentController :: PopUpErrorMessageBox -> Title="Error Occurred" Message="Timeout error. Failed to find element 'username' in page. Refer to the log for more information." Timeout=30 Subtitle="Login failed"]
WebFormFields:
username > {Username}@{Address}(searchby=id)
password > {Password}(searchby=id)
loginButtonRow > (Button)(searchby=id)
search-term-ref > (Validation)(searchby=id)
home-menu-link > (Validation)(searchby=class)
09-06-2019 02:28 AM
Hey @Edson Fuchigami,
From the looks of things you are hitting a timeout, when it trys to look for the 'username' field on the page it can not find it in a pre-determined timeout. This could be due to a connectivity issue, web site load time or perhaps an incorrect page is getting loaded (username field does not exist on the page).
First thing I would suggest is to manually connect to the PSM, then from there connect to the target site and see if there is an issue connecting or perhaps a load time delay.
Assuming the page is getting loaded correctly you can then start to increase timeouts on the Connection Component to see if this helps with the issue.
PVWA > Administration > Options > Connection Components > NameOfConnectionComponent > Target Settings > Lock Application Window
There are other time outs in the Connection component but usually increasing 'SearchWindowWaitTimeout' and possibly 'Timeout' should help.
Regards
Nathan
05-04-2021 04:24 AM
Hello @Debjani Banerjee
I was accessing through FLASH, changed to HTML5 and it worked!
https://community.cyberark.com/s/article/00005003
10-27-2021 01:52 AM
@Debjani Banerjee @Edson Fuchigami - Even I am facing this error.. Will you be able to assist this please..
I duplicated the vpshere web based component. But it is giving below error.
[27/10/2021 | 08:18:56] | :: | PSMDU018E Dispatcher error: [WebFormDispatcher :: HandleException -> CyberArk.WebAutomationUtils.WebBrowserException: Timeout error. Failed to find element 'username' in page. Refer to the log for more information at CyberArk.WebAutomationUtils.HTMLPageController.FindElement(HTMLAttribute attributeData, Int32 timeoutSeconds) at CyberArk.WebAutomationCommon.Commands.TextInput.Run(CommandsParameters commandsParameters) at CyberArk.WebAutomationCommon.WebPageExecuter.RunLoginPhase(List`1 commands, Int32 lastClickCommandIndex) at CyberArk.WebAutomationCommon.WebPageExecuter.RunCommands(List`1 commands, Boolean isRunValidation) at CyberArk.PSM.WebAppDispatcher.WebFormDispatche
[27/10/2021 | 08:18:56] | :: | r.ExecuteLogin(IExecuter actionExecuter)]
[27/10/2021 | 08:18:56] | :: | PSMDU019I Dispatcher trace message: [ConnectionComponentController :: PopUpErrorMessageBox -> START]
[27/10/2021 | 08:18:56] | :: | PSMDU018E Dispatcher error: [ConnectionComponentController :: PopUpErrorMessageBox -> Title="Error Occurred" Message="Timeout error. Failed to find element 'username' in page. Refer to the log for more information." Timeout=30 Subtitle="Login failed"]
[27/10/2021 | 08:18:56] | :: | PSMDU019I Dispatcher trace message: [ConnectionComponentController :: PopUpErrorMessageBox -> END]
[27/10/2021 | 08:19:01] | :: | PSMDU019I Dispatcher trace message: [HTMLPageController :: CloseBrowser -> START]
10-27-2021 05:01 AM
@Padmanabhan Harikumar Hope you are using HTML url of vcenter. i.e. https://hostname/ui
10-27-2021 06:29 AM
the long url in webform settings should be. https://dubvcsa01.airtricity.com/ui
10-27-2021 08:12 AM
@Padmanabhan Harikumar There might be other settings as well.
by looking at the error, Key things to check..
10-28-2021 02:45 PM
10-29-2021 07:11 AM
Please let us know the changes
10-29-2021 08:48 AM
In the connection component Under Client specific I have added few parameter and there values ie parameter name like Driver folder, Browser path and WaitbeforeElemenstload also in Webformfields I enabled below settings
username>{Username}@{LogonDomain}(SearchBy=id)
password>{Password}(SearchBy=id)
submit>(Button)(SearchBy=id)
04-10-2023 07:51 PM
@Padmanabhan Harikumar could you please let me know what additional parameters you have added in client specific tab
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

