跳至內容
選單
此問題已被標幟
1 回覆
1247 瀏覽次數

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
2326
0
7月 22
2612
0
1月 22
1625
4
12月 23
5040
1
7月 22
3502