Search code examples
seleniumwebautomationkantu

Textbox events?


I am using Kantu to automate filling out some forms. There is a textbox that when a persons id number is entered and you click into another box or tab out of the textbox it will load that persons vcard. I can try to expound if you need more clarity.

I don't know much but i'm guessing me clicking into another box is activiating some kind of event to load this vcard. I can't seem to simulate this. Does anyone know of a way to do so?


Solution

  • Sample of code

    I consulted with a friend who showed me the problem was an onblur event triggered by clicking away.

    The solution to my problem was to call the event using the following line,

    {
      "Command": "storeEval",
      "Target": "lawformTextBlur(document.getElementById('_f4'))",
      "Value": ""
    },