PSM VMWARE VSPHERE WEB DOMAIN - Timeout error. Failed to find element 'username' in page. Refer to the log for more information.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PSM VMWARE VSPHERE WEB DOMAIN - Timeout error. Failed to find element 'username' in page. Refer to the log for more information.

L2 Linker

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?

 

0682J000006zf7XQAQ.jpg

 

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) 

 

 

18 REPLIES 18

L4 Transporter

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

  • Timeout
  • SearchWindowWaitTimout.

There are other time outs in the Connection component but usually increasing 'SearchWindowWaitTimeout' and possibly 'Timeout' should help.

 

Regards

 

Nathan

didnt work

Hello @Debjani Banerjee​ 

 

I was accessing through FLASH, changed to HTML5 and it worked!

 

https://community.cyberark.com/s/article/00005003

L3 Networker

@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]

 

 

@Padmanabhan Harikumar​ Hope you are using HTML url of vcenter. i.e. https://hostname/ui

L3 Networker

@Venky - This is the actual url https://dubvcsa01.airtricity.com/ .. and this is there in logon url.

the long url in webform settings should be. https://dubvcsa01.airtricity.com/ui

L3 Networker

@Venkatesh Enjamoori​  - This is passed Using LogonURL. Value=https://dubvcsa01.airtricity.com/ui/. but I have same error. Is there any other settings which need to be checked.

L6 Presenter

@Padmanabhan Harikumar​ There might be other settings as well.

by looking at the error, Key things to check..

  1. Enforce Cert Valid...
  2. URL is opening or not when you launch. This is key thing..
  3. then find the username in the webpage.

L3 Networker

@Venkatesh Enjamoori​  - Thanks a lot I was able to resolve this added few parameters in Client specific tab and then it started working.

Glad to know it's resolved.. If possible, plz detail is what's been changed so that it's helpful for us. Also make that as best answer..

Please let us know the changes

L3 Networker

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)

@Padmanabhan Harikumar​ could you please let me know what additional parameters you have added in client specific tab

  • 8994 Views
  • 18 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!