--- title: "Test Automation Example: Handling Tables and Dropdowns Using AI" slug: "test-automation-example-tables-and-drop-downs-handling-using-ai" updated: 2026-08-24T10:46:54Z published: 2026-08-24T10:46:54Z canonical: "success.panaya.com/test-automation-example-tables-and-drop-downs-handling-using-ai" --- > ## Documentation Index > Fetch the complete documentation index at: https://success.panaya.com/llms.txt > Use this file to discover all available pages before exploring further. # Test Automation Example: Handling Tables and Dropdowns Using AI Selecting the correct cell in a table or the preferred option in a dropdown is usually straightforward with Panaya's built-in test automation capabilities. However, the dynamic nature of these elements or their technical complexity can sometimes make it harder to achieve the expected result. In such cases, the [AI Prompt](https://success.panaya.com/docs/ai-prompt) instruction can provide a quick and simple alternative. Prompt wording can significantly affect the likelihood of a successful result. As a general guideline, phrase the prompt clearly and structure it similarly to a Panaya-generated instruction. This can improve consistency and increase the likelihood of achieving the desired behavior. The following examples show prompt patterns for common table and dropdown scenarios: ## For Tables ### By Matching Values ![](https://cdn.document360.io/f404076c-de23-4609-848e-2dfd4ef701b0/Images/Documentation/image-9ZLFGP1I.png) ### By Row Number ![](https://cdn.document360.io/f404076c-de23-4609-848e-2dfd4ef701b0/Images/Documentation/image-U7NRDB4D.png) ## For Dropdowns ![](https://cdn.document360.io/f404076c-de23-4609-848e-2dfd4ef701b0/Images/Documentation/image-9GHXP3U6.png) > **Important:** Select the appropriate AI Prompt type (Execute, Capture, or Validate) to ensure the instruction functions as intended.