Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
1256 Visualizações

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
Cancelar
Melhor resposta

Hi,

Try this:

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

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
nov. 22
2334
0
jul. 22
2612
0
jan. 22
1626
4
dez. 23
5051
1
jul. 22
3506