Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
1235 Prikazi

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
Opusti
Best Answer

Hi,

Try this:

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

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
nov. 22
2301
0
jul. 22
2577
0
jan. 22
1610
4
dec. 23
5000
1
jul. 22
3480