Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1212 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

Try this:

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lis 22
2275
0
lip 22
2550
0
sty 22
1563
4
gru 23
4957
1
lip 22
3424