diff --git a/v2/pkg/protocols/headless/engine/page_actions.go b/v2/pkg/protocols/headless/engine/page_actions.go index cfb2910b..c923ea0c 100644 --- a/v2/pkg/protocols/headless/engine/page_actions.go +++ b/v2/pkg/protocols/headless/engine/page_actions.go @@ -303,7 +303,7 @@ func (p *Page) ClickElement(act *Action, out map[string]string /*TODO review unu if err = element.ScrollIntoView(); err != nil { return errors.Wrap(err, couldNotScrollErrorMessage) } - if err = element.Click(proto.InputMouseButtonLeft); err != nil { + if err = element.Click(proto.InputMouseButtonLeft, 1); err != nil { return errors.Wrap(err, "could not click element") } return nil @@ -323,7 +323,7 @@ func (p *Page) RightClickElement(act *Action, out map[string]string /*TODO revie if err = element.ScrollIntoView(); err != nil { return errors.Wrap(err, couldNotScrollErrorMessage) } - if err = element.Click(proto.InputMouseButtonRight); err != nil { + if err = element.Click(proto.InputMouseButtonRight, 1); err != nil { return errors.Wrap(err, "could not right click element") } return nil