Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
1218 Vistas

Hello, I have a button defined inside the body of a form in Odoo 15, as follows:

     

And I am trying to capture it and click on that button in an Integration Test as follows:

  {

         trigger: "button[name=action_process_wizard]",

         content: _t("Open the wizard"),

     }

But it doesn't work, any idea or example how can that be done?

Avatar
Descartar
Mejor respuesta

Hi,

Try this:

{
    trigger: "button[name='action_process_wizard']",
    content: _t("Open the wizard"),
    run: 'click',  // specifying the action to perform
}

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
nov 22
2278
0
jul 22
2551
0
ene 22
1567
4
dic 23
4960
1
jul 22
3428