Identity - Problems creating advanced web applications

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

Identity - Problems creating advanced web applications

L0 Member

Hello everyone, 

 

We are currently in the middle of deploying Cyberark Identity and we use websites that do not have "classic" connection flows. 

 

Example: Enter username, press a button, enter password, submit form. 

 

Natively, the browser extension handles these forms poorly but I read that it was possible to create advanced applications and despite numerous attempts I am stuck. 

 

For example, I'm trying to integrate the Apple Business Manager application: https://business.apple.com/#/main/users

 

I created an advanced application and entered the following script: 

 

loginData.applicationUrl = "https://business.apple.com";

loginData.addField("username", "input#account_name_text_field", LoginUsername);

loginData.addField("password", "input#password_text_field", LoginPassword);

loginData.submitPattern = "input#sign-in";

loginData.order=[ ["sleep", 300],["fill", "username"],["sleep", 300],["click", "button#sign-in"],["sleep", 300],["fill", "password"],["sleep", 500],["submit"]];

 

Field_Content_versions_oct20__068Ht00000VeDPrIAN.png 

Unfortunately, nothing happens. The tab opens fine but no field is filled, not even the first. 

 

Field_Content_versions_oct20__068Ht00000VeDPwIAN.png 

I have the problem on all the applications I try to integrate so I imagine there must be a syntax error or a field that I am forgetting.

 

Does anyone have an idea? 

 

Thanks for your help. 

 

Sincerely,

 

Florian

3 REPLIES 3

L7 Applicator

Hi @Mechin Florian​ 

 

Please verify that the input field selectors (input#account_name_text_field and input#password_text_field) match the actual HTML structure on the page. You can use the browser's developer tools to inspect the fields.

 

Try to increase the sleep intervals between actions to allow the page enough time to load the next step before filling the fields.

 

Also check that submitPattern = "input#sign-in" is correctly targeting the submit button. If it's a dynamic button, you might need to trigger a click event manually instead of using submit()

 

Please test filling the username and password fields separately to ensure each step is working, then build the sequence.

 

Hope it helps !

L0 Member

Hi @Malhar Vora​,

 

Thank you for your response.

 

I redid a lot of tests but nothing, it doesn't work. The field is well targeted, tested with the Chrome and Firefox DOM explorer.

 

loginData.applicationUrl = "https://business.apple.com/#/main/users";

loginData.addField("username", "input[type=text]", LoginUsername);

loginData.order=[ ["sleep", 1000],["fill", "username"]];

 

Field_Content_versions_oct20__068Ht00000VeDudIAF.png 

There must be some subtlety on this website that escapes me because the same code on another site works perfectly...

 

You are referring to the possibility of clicking on an element, can you tell me how to do this? To tell the truth, I can't find any documentation on the Cyberark site that shows all the possibilities of this script.

 

Thanks again

 

Florian

L4 Transporter

Hi @Mechin Florian​ 

 

I tried and also got stuck not autopopulating the fields or clicking the arrow button. This page is really tough. Please submit a support ticket and see if they can get our specialists to help https://community.cyberark.com/s/Submit-a-Case

  • 331 Views
  • 3 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!