- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.
03-22-2019 04:21 AM
Hello all,
i would like to ask a question, when you develop the connection component(google chrome) using autoit for webpages, what is the best approach to send user name and password. I ususally use the command send.
Send($Targetusername)Send($TargetPassword)
And before using command "send" i check always if the window exists or not .
Is there any other way to instead of using send like in IE i directly insert the id from html code.
I tried to use the connection component chrome released by cyberark, but sometime it works and some time not.
Thanks in advance.
NS
03-22-2019 04:32 AM
I believe there is an autoit library for chrome automation ( https://www.autoitscript.com/forum/topic/154439-chrome-udf/ ) but its just *so* much less painful to use the Selenium integration in recent version (4 lines of config vs 300-400 lines of autoit code). See webformsample connection component.
03-22-2019 04:34 AM
But why to use AUTO IT? and plus it is not secure to use keyboard functions in auto it. you can use webforms for chrome which are much secure, easily do able using PGU utility. check below link if you are not aware about PGU
https://community.cyberark.com/mplace/s/#a3550000000EiC4AAK-a3950000000jjUeAAI
03-22-2019 04:34 AM
But why to use AUTO IT? and plus it is not secure to use keyboard functions in auto it. you can use webforms for chrome which are much secure, easily do able using PGU utility. check below link if you are not aware about PGU
https://community.cyberark.com/mplace/s/#a3550000000EiC4AAK-a3950000000jjUeAAI
03-22-2019 06:23 AM
PGU for PSM Connectors is something I am hearing new, did not it support creating only CPM plugins, wheareas PGU 1.2 also supprting Web based CPM plugin creation such as FB, Twitter etc, is there a disconnect here or I am wrong?
03-22-2019 06:23 AM
PGU for PSM Connectors is something I am hearing new, did not it support creating only CPM plugins, wheareas PGU 1.2 also supprting Web based CPM plugin creation such as FB, Twitter etc, is there a disconnect here or I am wrong?
03-22-2019 08:48 AM
Thanks for your reply...I tried PGU but to upload this connection component i need shell script to up. And i don't have permission to upload by shell scripting. In few days i will try in my lab and check how it works.
what do u mean by " is there a disconnect here or I am wrong?"
03-22-2019 08:52 AM
@Colin McKinnon thanks for your reply. Well i tried the webformsample connection component.
j_username>{Username}(SearchBy=id)
j_password>{Password}(SearchBy=id)
other>(Button)(SearchBy=id)
I took this fields from html code but it's not able to find any field. I tried by id,name, and leaving without searchby. But i don't know why it's not able to find any field.
PSMDU019I Dispatcher trace message: [Selenium :: WaitForElement -> Waiting until element '"j_username"' is found in page. Timeout: '10'.]
PSMDU019I Dispatcher trace message: [ElementTypeBase :: WaitIUntilElementIsVisible -> Waiting for element '"j_username"' in page using type
PSMDU019I Dispatcher trace message: [ElementTypeBase :: WaitIUntilElementIsVisible -> Element '"j_username"' was not found using type 'ID'.]
PSMDU018E Dispatcher error: [Selenium :: WaitForElement -> Timeout error. Element '"j_username"' was not found in new page. ]
Do u have any idea how to proceed??
Thanks in advance
03-22-2019 08:56 AM
@Ankush_Agarwal (Community Member) thanks for your reply. Well i tried PGU utility, and it seems good but there are a lot of URL which cannot opened by chrome useragent so i must use IE for that...
I wonder if on your PGU utility works with every URL or agents.
Thanks in advance.
03-22-2019 10:34 AM
I mean can we really create PSM connectors with the help of PGU, my knowledge says it is used for creating CPM plugin so is there a disconnect or I am completely wrong??
03-22-2019 10:34 AM
I mean can we really create PSM connectors with the help of PGU, my knowledge says it is used for creating CPM plugin so is there a disconnect or I am completely wrong??
03-23-2019 04:33 AM
The errors you displayed here saying that the element j_username is not on the URL you provided:
Make sure you didn't miss any configurations (like correct logon-url, login form - on this specific component, correct locator settings and such).
You can read a bit more on how to create a selenium connection component (chrome/IE) here:
https://cyberarkdocu.azurewebsites.net/Product-Doc/OnlineHelp/PAS/Latest/en/Content/PASIMP/psm_WebApplication.htm?Highlight=WebAppSample
GL!
03-25-2019 04:25 AM
Hello @Baruch Goldberger
Thanks for your reply. I really don't understand where i am making mistake or this component is not getting the parameter...
Here is HTML code:
*************************************************************
<form id="loginData" name="loginData" method="post" action="/console/j_security_check">
<div class="message-row">
<noscript><p class="loginFailed">Extra.</p></noscript>
<p>Server</p>
</div>
<div class="input-row">
<label for="j_username">
Nome utente:</label>
<span class="ctrl">
<input class="textinput" type="text" autocomplete="off" name="j_username" id="j_username">
</span>
</div>
<div class="input-row">
<label for="j_password">
Password:</label>
<span class="ctrl">
<input class="textinput" type="password" autocomplete="off" name="j_password" id="j_password">
</span>
</div>
<div class="button-row">
<span class="ctrl">
<input class="formButton" type="submit" onclick="form.submit();this.disabled=true;document.body.style.cursor = 'wait'; this.className='formButton-disabled';" value="Login">
</span>
<input type="hidden" name="j_character_encoding" value="UTF-8">
</div>
</form>
**************************************************************************************************
As you can see in the HTML code my form id="loginData", id="j_username", and id="j_password". And below you can see the errors:
*****************************************************
[25/03/2019 | 12:14:14] | :: | PSMDU019I Dispatcher trace message: [ElementTypeBase :: WaitIUntilElementIsVisible -> Waiting for element 'j_username' in page using type 'ID'.]
[25/03/2019 | 12:14:44] | :: | PSMDU019I Dispatcher trace message: [ElementTypeBase :: WaitIUntilElementIsVisible -> Element 'j_username' was not found using type 'ID'.]
[25/03/2019 | 12:14:44] | :: | PSMDU019I Dispatcher trace message: [ElementTypeBase :: WaitIUntilElementIsVisible -> Waiting for element 'j_username' in page using type 'NAME'.]
[25/03/2019 | 12:15:14] | :: | PSMDU019I Dispatcher trace message: [ElementTypeBase :: WaitIUntilElementIsVisible -> Element 'j_username' was not found using type 'NAME'.]
[25/03/2019 | 12:15:14] | :: | PSMDU019I Dispatcher trace message: [ElementTypeBase :: WaitIUntilElementIsVisible -> Waiting for element 'j_username' in page using type 'CLASS'.]
[25/03/2019 | 12:15:44] | :: | PSMDU019I Dispatcher trace message: [ElementTypeBase :: WaitIUntilElementIsVisible -> Element 'j_username' was not found using type 'CLASS'.]
[25/03/2019 | 12:15:44] | :: | PSMDU018E Dispatcher error: [Selenium :: WaitForElement -> Timeout error. Element 'j_username' was not found in new page. ]
***********************************************
Do u have any idea where is the problem..
Thanks in advance..
03-25-2019 04:29 AM
Hello @Himanshu Pandey
i really tried to create PSM connector for web page but still not successfull. Your knowledge is saying right that it used to create CPM plugin but now i can see option of PSM web connector.
03-25-2019 08:00 AM
Which connection component did you copy when creating that one?
Was it PSM-WebAppSample or PSM-WebFormSample ?
Also, which PAS version is installed?
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!

