Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
1286 Visninger

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
Kassér
Bedste svar

Hi,

Try this:

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

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
nov. 22
2361
0
jul. 22
2635
0
jan. 22
1646
4
dec. 23
5085
1
jul. 22
3530