Db2

 View Only
  • 1.  Automate DMC login programmatically

    Posted Wed May 10, 2023 11:26 AM
    Edited by Soon Wed May 10, 2023 08:49 PM

    Hi,

    I am looking at whether it is possible to login to DMC automatically by entering the username and password programmatically and then simulating clicking on the sign in button to submit the login page.

    The values for these fields are not only set programmatically, the relevant keyboard events are also dispatched to them. I found that even though the credentials were injected into the username and password fields, the sign in button is still disabled. 

    The keyboard events match the ones that are generated with manual user entries except for the isTrusted property in the events. This property is set to true for events from the manual user entries and false when dispatched programmatically. The other properties in the events have the same values.

    I am unable to get any further as to how the keyboard events are handled as the scripts for DMC login page are obfuscated. Based on the above observations, it seems like it is not possible to login to DMC console via the login page programmatically.

    I understand this might be a security feature. Can someone confirm whether this is the case?

    Thanks.



    ------------------------------
    Soon
    ------------------------------



  • 2.  RE: Automate DMC login programmatically

    Posted Wed May 24, 2023 11:00 AM

    I guess you a referring to Data Management Console by DMC. I so I did automated login using Selenium. Install Selenium IDE in Chrome and record one login process. Then execute the project.

    Thanks!



    ------------------------------
    Sahan Mendis
    ------------------------------