i have designed one simple project using excel config file in that i saved three different site logins UiPath will open that application using those three logins it logs into that particular application one by one using for each row but now the question is if the login password is expired that particular login, I have to write in in superette excel sheet how I can take that particular login.
If the login password is expired that particular login, I have to write in in superette excel sheet how I can take that particular login
In your for each row…when the login fails,either using if condition or try catch block add the row data to a separate datatable using add data row activity . At the end of loop the second datatable should contain the required failed rows
When you enter the credentials and try to login, you must be getting some sort of popup or window saying that your password is expired. Now, you can use the ‘Element Exists’ activity to detect that element. If that’s present, you can add that row(“Username”).ToString & row(“Password”).ToString to a separate data table built outside the loop. Once the loop is completed, you have all the expired data in the data table, which you can use to write the range in a separate sheet.
Hope this helps,