Password verification failed with custom Web CPM plugin

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

Password verification failed with custom Web CPM plugin

L1 Bithead

Hi,

 

We are using to custom web CPM plugin, available in marketplace, to develop a plugin for Salesforce website. We have mentioned the below elements under Verify section of ElementsData.ini file. But getting error, "Execution error. Verify process failed - Validation failed. Refer to the log for more information. Error code:9311". Can anyone please guide how to troubleshoot further. Thanks in advance.

-------------------ElementsData.ini--------------------------------

[Verify]

username > {username}

password > {password}

Login > (Button)

error > (Failure)(Message="Please check your username and password. If you still can't log in, contact your Salesforce administrator.")

search > (Validation)

 

 

 

4 REPLIES 4

L7 Applicator

Turn on "Debug" in the plugin and look at the logs.

L1 Bithead

Thanks @Bernhard Brückler​ . It really helped.

 

So the debug log says "Login Phase completed successfully." But it is not able to find the "search" element id in the page after successful login for validation. Tried replacing with couple of other element ids but same error. These element ids are actually present on successful login.

Tried putting a bigger value for the Action timeout parameter , thinking maybe because of a small timeout value, the next page is not getting loaded before the CPM can find the element id for validation. But that did not work either.

These are not in iframes. Just wondering if need to specify anything else before the validation line in ElementsData.ini file.

 

Thanks much.

The salesforce site prompts for the verification code (code sent to your registered mail ID) before loading the home page.

Confirm that you have disabled that verification code prompt for your account.

L2 Linker

Hi, I'm currently working on an almost identical plugin. Were you able to get the plugin to detect text on the page for detecting failures or successes?

 

For example, I have this in the Verify portion of ElementsData.ini, but the plugin can't detect the text after an incorrect password was used. I get this in the debug log.

 

Please check your username and password. If you still can't log in, contact your Salesforce administrator. > (failure)(searchby=Text)(Message="Invalid Username or Password")

 

Info -> HTMLPageController :: FindElement -> Waiting until element 'Please check your username and password. If you still can't log in, contact your Salesforce administrator.' is found in page. Timeout: '15'.

Info -> AttributeTypeBase :: Find -> Waiting for element 'Please check your username and password. If you still can't log in, contact your Salesforce administrator.' in page using type 'TEXT'.

Info -> AttributeTypeBase :: Find -> Element 'Please check your username and password. If you still can't log in, contact your Salesforce administrator.' was not found using type 'TEXT'.

  • 1851 Views
  • 4 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!