Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
1258 Visualizzazioni

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
Abbandona
Risposta migliore

Hi,

Try this:

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
nov 22
2339
0
lug 22
2614
0
gen 22
1627
4
dic 23
5056
1
lug 22
3507