on 07-20-2020 11:10 AM
We are trying to automate S4Cloud web applications (Logon), though manually logged off from the application on the browser before running IRPA script in Debug mode, some times directly takes to Home screen by skipping the Login screen.
Please suggest if can insert delete cookies code before launching the browser or similar solution. As in Selenium
driver.manage().deleteAllCookies() method present, is there similar one in IRPA.
If you want to access the cookie of the webpage that you opened, you can use the below code.
var infos = Activities.ActivitiesPage.getInfos();
infos.document.cookie
but to clear the cookie from a browser, you have to implement the javascript code like below.
https://stackoverflow.com/questions/179355/clearing-all-cookies-with-javascript
and Why don't you use wait multiple to switch between logon and lauchpad page?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
lakshmil I would still recommend you to manage this using wait multiple , but if you want to delete cookies, then use that javascript code, but to execute that javascript code inside the browser, you need to user execscript function of the irpa, check the below blog.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.