İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
1217 Görünümler

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
Vazgeç
En İyi Yanıt

Hi,

Try this:

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

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Kas 22
2278
0
Tem 22
2550
0
Oca 22
1567
4
Ara 23
4958
1
Tem 22
3428