<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Menu Layout button on Appian Selenium</title><link>https://community.appian.com/discussions/f/user-interface/39314/menu-layout-button-on-appian-selenium</link><description>How to click on the above Menu Layout Button? using the Appian Selenium</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Menu Layout button on Appian Selenium</title><link>https://community.appian.com/thread/149110?ContentTypeID=1</link><pubDate>Thu, 19 Jun 2025 19:22:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7270aa87-4401-457c-a4a1-e5166c73a6b6</guid><dc:creator>Steven Miccile</dc:creator><description>&lt;p&gt;The Appian Selenium API has javadocs in the download. Have you tried the following?&lt;/p&gt;
&lt;ul class="blockList"&gt;
&lt;li class="blockList"&gt;
&lt;h4&gt;clickOnRecordActionFieldMenuAction&lt;/h4&gt;
&lt;pre class="methodSignature"&gt;public&amp;nbsp;void&amp;nbsp;clickOnRecordActionFieldMenuAction​(java.lang.String&amp;nbsp;indexOfField, java.lang.String&amp;nbsp;action)&lt;/pre&gt;
&lt;div class="block"&gt;Click a specified action inside a record action field with styling of MENU or MENU_ICON&lt;br /&gt;FitNesse Example:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;| click on record action field | [INDEX] | menu action | ACTION_NAME or [INDEX] |&lt;/code&gt;&lt;/div&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;span class="paramLabel"&gt;Parameters:&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;code&gt;indexOfField&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;- The index of the record action field out of all record action fields on the page&lt;/dd&gt;
&lt;dd&gt;&lt;code&gt;action&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;- The action from the dropdown that the user wants to click on&lt;/dd&gt;
&lt;/dl&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Menu Layout button on Appian Selenium</title><link>https://community.appian.com/thread/149084?ContentTypeID=1</link><pubDate>Thu, 19 Jun 2025 07:34:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6973fcbc-c033-45d5-b8f7-4f21523d2ba8</guid><dc:creator>David Jimenez </dc:creator><description>&lt;p&gt;Identifying a button in Appian using Selenium can be more challenging than in traditional applications because Appian generates its UI dynamically and many CSS classes can change frequently. Here are some effective and stable ways to locate buttons:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. Locate by visible text&lt;/strong&gt;&lt;br /&gt;If the button has visible text, you can use XPath:&lt;/p&gt;
&lt;p&gt;driver.find_element(By.XPATH, &amp;quot;//button[normalize-space()='ButtonName']&amp;quot;)&lt;/p&gt;
&lt;p&gt;If it&amp;rsquo;s not a &amp;lt;button&amp;gt; element but a &amp;lt;div&amp;gt;, &amp;lt;a&amp;gt;, or similar:&lt;/p&gt;
&lt;p&gt;driver.find_element(By.XPATH, &amp;quot;//*[text()='ButtonName']&amp;quot;)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;2. Use stable attributes&lt;/strong&gt;&lt;br /&gt;Look for attributes like:&lt;/p&gt;
&lt;p&gt;aria-label&lt;/p&gt;
&lt;p&gt;title&lt;/p&gt;
&lt;p&gt;id (if not dynamic)&lt;/p&gt;
&lt;p&gt;data-*&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;driver.find_element(By.CSS_SELECTOR, &amp;quot;[aria-label='Save']&amp;quot;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Menu Layout button on Appian Selenium</title><link>https://community.appian.com/thread/149074?ContentTypeID=1</link><pubDate>Thu, 19 Jun 2025 05:51:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2888825a-3b5d-4759-9c8d-7cdf9a12bfef</guid><dc:creator>varung120549</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="/members/anbus0002"&gt;anbus0002&lt;/a&gt;&amp;nbsp;,&lt;br /&gt;&lt;br /&gt;Identify a Unique XPath/CSS Selector for the Menu Layout Button.&lt;br /&gt;&lt;br /&gt;Check the following Selenium code if you are trying to test or using RPA:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;WebDriver driver = AppianObjectRepository.getWebDriver();

WebElement menuButton = driver.findElement(By.xpath(&amp;quot;//button[contains(@class, &amp;#39;Button---secondary&amp;#39;) and contains(@class, &amp;#39;Button---small&amp;#39;) and contains(@class, &amp;#39;Button---with_icon&amp;#39;)]&amp;quot;));
menuButton.click();
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If it&amp;#39;s RPA, then you can refer this link - &lt;a href="https://docs.appian.com/suite/help/25.1/rpa-9.16/java-module-browser.html#can-i-use-javascript-in-my-robotic-task-code"&gt;Browser Java Module&lt;br /&gt;&lt;br /&gt;&lt;/a&gt;Note: &lt;span style="color:#ff0000;"&gt;The above code is just for reference, identify exact relative xpath !!!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>