Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. QA Tools
  3. Squish
  4. Squish for java, right-click to show context menu

Squish for java, right-click to show context menu

Scheduled Pinned Locked Moved Unsolved Squish
2 Posts 2 Posters 155 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Pieter Knelissen
    wrote last edited by Pieter Knelissen
    #1

    I have a row in a table and when I right-click on the row, a context menu should appear.
    I can find the row in the table but have no clue how to bring up the context menu and select an item.

    Some trial:
    'obj' is the object representing the row
    'common.Applications_Setup_ContextMenu' is the name of the menu as found during recording.

        squish.nativeMouseClick( obj, button=RightButton )
        squish.activateItem(squish.waitForObjectItem(common.Applications_Setup_ContextMenu, "Remove project"))
    

    but it complains about 'RightButton'. I tried squish.RightButton, MouseButton.RightButton and various permutations of capitalization.....
    I have 2 questions:

    • what is the right way to bring up the context menu?
    • where can I find definitions of constants like 'RightButton' ?
    H 1 Reply Last reply
    0
    • P Pieter Knelissen

      I have a row in a table and when I right-click on the row, a context menu should appear.
      I can find the row in the table but have no clue how to bring up the context menu and select an item.

      Some trial:
      'obj' is the object representing the row
      'common.Applications_Setup_ContextMenu' is the name of the menu as found during recording.

          squish.nativeMouseClick( obj, button=RightButton )
          squish.activateItem(squish.waitForObjectItem(common.Applications_Setup_ContextMenu, "Remove project"))
      

      but it complains about 'RightButton'. I tried squish.RightButton, MouseButton.RightButton and various permutations of capitalization.....
      I have 2 questions:

      • what is the right way to bring up the context menu?
      • where can I find definitions of constants like 'RightButton' ?
      H Offline
      H Offline
      henry.ishiyama
      wrote last edited by
      #2

      It might be necessary specify the button as:

      squish.MouseButton.RightButton
      

      However it is not clear exact error message you are facing.
      Therefore it might be better to share support information logs in the future.
      For more information regarding obtaining the support information logs, please refer to the following knowledge based article.
      Collecting the most important information (Linux, macOS, Windows)

      @Pieter-Knelissen said in Squish for java, right-click to show context menu:

      I have a row in a table and when I right-click on the row, a context menu should appear.
      I can find the row in the table but have no clue how to bring up the context menu and select an item.

      Some trial:
      'obj' is the object representing the row
      'common.Applications_Setup_ContextMenu' is the name of the menu as found during recording.

          squish.nativeMouseClick( obj, button=RightButton )
          squish.activateItem(squish.waitForObjectItem(common.Applications_Setup_ContextMenu, "Remove project"))
      

      but it complains about 'RightButton'. I tried squish.RightButton, MouseButton.RightButton and various permutations of capitalization.....
      I have 2 questions:

      • what is the right way to bring up the context menu?
      • where can I find definitions of constants like 'RightButton' ?
      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved