Skip to Content
मेन्यू
This question has been flagged
1 Reply
1216 Views

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

Hi,

Try this:

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

Avatar
Discard
Related Posts Replies Views Activity
1
नव॰ 22
2278
0
जुल॰ 22
2550
0
जन॰ 22
1566
4
दिस॰ 23
4958
1
जुल॰ 22
3428