2

I have a AXPopUpButton that brings up a contectual menu if you click it. However, I can't seem to access the menu with javascript applescript UIAutomation.

pop = item.popUpButtons.byName("Select")
pop.click()
delay(0.5)

Then the menu shows up on the screen. However, "pop.menus()", "pop.menuItems()", "pop.menus.menuItems()" all returns length of 0. How can I access the popup menus using UIAutomation in javascript? Thanks!

chibop
  • 119
  • 9

1 Answers1

0

After clicking you should call entireContents() for the whole window. And then, choose the necessary one pop up selection.

Rarblack
  • 4,559
  • 4
  • 22
  • 33
Jack
  • 31
  • 3