Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
1249 Vues

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
Ignorer
Meilleure réponse

Hi,

Try this:

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

Avatar
Ignorer
Publications associées Réponses Vues Activité
1
nov. 22
2330
0
juil. 22
2612
0
janv. 22
1625
4
déc. 23
5044
1
juil. 22
3505