跳至内容
菜单
此问题已终结
1 回复
1326 查看

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?

形象
丢弃
最佳答案

Hi,

Try this:

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

形象
丢弃
相关帖文 回复 查看 活动
1
11月 22
2398
0
7月 22
2663
0
1月 22
1687
4
12月 23
5172
1
7月 22
3624