updating syntax

dev
mzack 2022-09-28 01:51:47 +02:00
parent 37d7786997
commit 2cf0005eaa
1 changed files with 2 additions and 2 deletions

View File

@ -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