コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
1267 ビュー

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
2344
0
7月 22
2622
0
1月 22
1637
4
12月 23
5072
1
7月 22
3508