Files
openchamber-android-native/third_party/mygo/plugins/automation/menu_linux.go
T

14 lines
450 B
Go
Raw Normal View History

//go:build linux && !android && (amd64 || arm64) && !mygo_noinspector && !android
package automation
import (
"github.com/egoist/mygo"
"github.com/egoist/mygo/internal/linux"
)
// chooseMenuItem chooses an item of the window's menu bar, which shows
// the application menu, by the labels along its path. Main thread only.
func chooseMenuItem(w *mygo.Window, path []string) error {
return linux.TestActivateMenuItem(w.NativeHandle(), path...)
}