<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Squish for java, right-click to show context menu]]></title><description><![CDATA[<p dir="auto">I have a row in a table and when I right-click on the row, a context menu should appear.<br />
I can find the row in the table but have no clue how to bring up the context menu and select an item.</p>
<p dir="auto">Some trial:<br />
'obj' is the object representing the row<br />
'common.Applications_Setup_ContextMenu' is the name of the menu as found during recording.</p>
<pre><code>    squish.nativeMouseClick( obj, button=RightButton )
    squish.activateItem(squish.waitForObjectItem(common.Applications_Setup_ContextMenu, "Remove project"))
</code></pre>
<p dir="auto">but it complains about 'RightButton'. I tried squish.RightButton, MouseButton.RightButton and various permutations of capitalization.....<br />
I have 2 questions:</p>
<ul>
<li>what is the right way to bring up the context menu?</li>
<li>where can I find definitions of constants like 'RightButton' ?</li>
</ul>
]]></description><link>https://forum.qt.io/topic/164062/squish-for-java-right-click-to-show-context-menu</link><generator>RSS for Node</generator><lastBuildDate>Sun, 13 Sep 2026 01:13:11 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/164062.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 09 Jan 2026 10:49:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Squish for java, right-click to show context menu on Sat, 10 Jan 2026 11:54:05 GMT]]></title><description><![CDATA[<p dir="auto">It might be necessary specify the button as:</p>
<pre><code>squish.MouseButton.RightButton
</code></pre>
<p dir="auto">However it is not clear exact error message you are facing.<br />
Therefore it might be better to share support information logs in the future.<br />
For more information regarding obtaining the support information logs, please refer to the following knowledge based article.<br />
<a href="https://qatools.knowledgebase.qt.io/misc/collecting-support-info/collecting-support-information-linux-mac-windows/" target="_blank" rel="noopener noreferrer nofollow ugc">Collecting the most important information (Linux, macOS, Windows)</a></p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pieter-knelissen">@<bdi>Pieter-Knelissen</bdi></a> said in <a href="/post/835317">Squish for java, right-click to show context menu</a>:</p>
<blockquote>
<p dir="auto">I have a row in a table and when I right-click on the row, a context menu should appear.<br />
I can find the row in the table but have no clue how to bring up the context menu and select an item.</p>
<p dir="auto">Some trial:<br />
'obj' is the object representing the row<br />
'common.Applications_Setup_ContextMenu' is the name of the menu as found during recording.</p>
<pre><code>    squish.nativeMouseClick( obj, button=RightButton )
    squish.activateItem(squish.waitForObjectItem(common.Applications_Setup_ContextMenu, "Remove project"))
</code></pre>
<p dir="auto">but it complains about 'RightButton'. I tried squish.RightButton, MouseButton.RightButton and various permutations of capitalization.....<br />
I have 2 questions:</p>
<ul>
<li>what is the right way to bring up the context menu?</li>
<li>where can I find definitions of constants like 'RightButton' ?</li>
</ul>
</blockquote>
]]></description><link>https://forum.qt.io/post/835334</link><guid isPermaLink="true">https://forum.qt.io/post/835334</guid><dc:creator><![CDATA[henry.ishiyama]]></dc:creator><pubDate>Sat, 10 Jan 2026 11:54:05 GMT</pubDate></item></channel></rss>