Web Element Selectors
IntelliBuddies Web UI Selector
Element Selectors
Most web automation activities require you to select a web UI element. These elements include text boxes, table cells, buttons, dropdown lists, and many others. Any web UI element can be denoted through a specific XPath inside a web page.
IntelliBuddies lets you select these web UI elements through a visual approach, and we call them Element Selectors. To choose the web UI element for an activity, perform the following steps:
-
Click on the ellipsis[...] button available at the end of the Element Path property as part of the activity.
noteYou can find the Element Path property in the following web automation browser activities.
-
This will pop up the Browser Selector dialog
Option Description Select the browser instance You can either open an existing browser instance or launch a new one. Browser Select the browser type from the dropdown. URL When launching a new browser instance, specify the URL here.
If you opt for an existing browser instance, this will populate with all the URLs currently loaded by the current browser instances. You can select a specific one. -
Click on the OK button.
-
Element Selector waiting button appears.
-
Based on your selection, it will either bring a new browser instance or enable the existing browser instance to allow you to select the web UI element
-
Hover your mouse over the element you want to select in the Browser. The web UI elements will be highlighted as and when you hover over them.
-
Right-Click on the mouse and click on Send XPath to select the web UI element
The selected web UI element will be stored as an XPath.
Element Selectors for Iframes
In addition to seamlessly selecting web UI elements within the main document, IntelliBuddies extends its functionality to support selecting elements within iframes. Iframes, also called inline frames, are HTML elements that facilitate embedding one HTML document within another. Accurately selecting elements within these nested documents is pivotal when automating tasks within iframes.
To select a web UI element within an iframe using IntelliBuddies' visual approach, adhere to the following steps:
-
Drag and drop the Get Iframe activity to main workflow
-
In the Iframe Path configuration option, click on the dropdown arrow, which shows two options: Select Element and Edit Path. Choose the Select Element option to open the Browser Selector dialog having the following options:
Option Description Select the browser instance You can either open an existing browser instance or launch a new one. Browser Select the browser type from the dropdown. URL When launching a new browser instance, specify the URL here.
If you opt for an existing browser instance, this will populate with all the URLs currently loaded by the current browser instances. You can select a specific one.Iframe This option becomes available if any iframes are present on the selected or provided webpage. You can specify the URL here or select from the dropdown list of iframe URLs and their corresponding paths. Here is an example webpage that contains many Iframes. The Get Iframe activity lists all of them with hierarchy.
You can view the selected Iframe by clicking on the eye button. Here is an example
-
Click the OK button to proceed.
-
The Element Selector waiting button will appear.
-
Depending on your selection, it will launch a new browser instance or activate an existing one, enabling you to select the desired web UI element inside the Iframe.
-
Hover your mouse cursor over the element you wish to select within the Browser. Highlights Web UI elements as you hover over them.
-
Right-click your mouse and select Send XPath to designate the web UI element.
This action returns the selected web UI element in XPath format, representing the iframe path.
XPath Encoding
If the XPath contains special characters, you should encode them before specifying them for the HTML or Web selector properties. Here is the table listing the special characters with encoded values: