- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
05-05-2020 09:51 AM
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)
05-05-2020 10:46 AM
Turn on "Debug" in the plugin and look at the logs.
05-05-2020 01:27 PM
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.
12-01-2020 02:25 AM
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.
05-21-2021 09:09 AM
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'.
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!

