martedì 12 marzo 2024

Cyberark Web Connectors examples

Web Connectors 

With the following configuration, it will look for the two fields by tag name and the button for XPath. 

username>{Username}(SearchBy=Name) 

password>{Password}(SearchBy=Name) 

/html/body/div/form/div/div/div^[2^]/button>(Button)(SearchBy=XPath) 

 

 Pay attention to the "^" before each "[". It is mandatory. Value for SearchBy: ID, Name, Class, XPath

To know more: https://docs.cyberark.com/pam-self-hosted/12.6/en/Content/PASIMP/psm_WebApplication.htm

Simple timer in Windows cmd

c:\>timeout /t 60 It will wait 60 seconds. The command can be used in batch scripts as well.

One of the most outstanding books on statistics ever written.

An Introduction to Statistical Learning Gareth James Daniela Witten Trevor Hastie Rob Tibshirani Visit https://www.statlearning.com The book is precise, concise and gives you a lot of amazing examples. It is a must-read for computer scientists.

Easy way to manage dictionaries in Python

#given a dictionary key-value, increments the amount by value. def inc_dict_value(self, dict, key, value): if key not in dict: dict[key] = value else: dict[key] += value