Search

Web UI Node

Last Updated: Oct 5, 2021

Articles

I am unable to start the recording in the Web UI node, get the error message as "Jiffy Extension in Google Chrome is not enabled".
Image description

Perform the following steps to enable Jiffy extension.

  1. Navigate to Chrome extensions(chrome://extensions/) and check if the JIFFY extension is enabled.
    1. If not enabled, enable the same.
    2. Restart the Google Chrome browser and start the recording.
  2. Image description
  3. If after enabling the Chrome extension the error persists, check if the file ChromeUILearnNativeMessagePump.exe exists in path C:\jiffyservice\CommonFiles\UILearnChromePlugin\host.
    1. If a backup file(ChromeUILearnNativeMessagePump_backup.exe) exists, rename the file to ChromeUILearnNativeMessagePump.exe.
    2. Restart the bot after the changes are made and start the recording.
  4. If error persists, replace the Jiffy extension.
    1. Enable the developer mode if it is not enabled, refresh the Chrome://extensions page.
    2. Remove the current jiffy extension.
    3. Drag the Jiffy_chrome_extension.crx file from C:\jiffyservice\CommonFiles\ChromeExtension and drop it in the chrome extension section of the Google Chrome browser.
    4. Restart the Google Chrome browser and start the recording.

I am unable to record using JiffyUILearn when I hover the mouse cursor on the UI element to be recorded and press CTRL key on keyboard nothing happens. The UI element is not getting highlighted in red color and listed.

Check if the developer mode is enabled for chrome extension, if not enable the same and restart the browser. Image description

While executing Web UI node that has web table extraction, I get the error “Element Not Found“. Image description

This error can occur due to multiple reasons:

  1. The search result is empty: Check if the search result on the website fetches any data. Search manually with the same inputs and ensure data is fetched. Else change the inputs for which data is available in the search result.
  2. Add a step for Delay using predefined function Delay In Seconds, provisioning time for data to load completely on the webpage before the element is read.

While executing Web UI node that has web table extraction, I get the error “List index out of range”. Image description

This error can occur due to multiple reasons:

  1. No Data in the provided Index position: Check if the data is available in the row/column number provided. Change the index to get the available data.
  2. Add a step for Delay using predefined function Delay In Seconds, provisioning time for data to load completely on the webpage before the element is read.

During execution of Web UI node with Image/Text Recording, I get an error “Task cannot be executed. Current screen width: 1536 or Height 864 is different from the Learned Width 1920 or Height 1080”. Image description

This error occurs when the resolution of your machine is different from the resolution while the elements were recorded.
Check if the layout is set to 100% in the display settings. (Refer to the following snapshot).
Check the Display resolution is the same as mentioned in the error for the learned element Width 1920 or Height 1080. If not change the values.
If the error persists, change the resolution to 100% and re-record the element. Image description

I need to add a few more elements to an existing WebUI node. When I start recording, I am highlighting the element and pressing the CTRL Key but it is not getting recorded. Image description

Ensure Screen in which you want to add elements is selected in the UI Learn dialog box.

When I try to record the data from Web UI node row-wise, I am getting the warning “Elements might not be correlated”. Image description

This error occurs when after recording the first-row element of the first column, you record the row element of the second column directly. For Web Table recording, for the first column, you need to select two row elements.
Ensure the first column data is displayed on the Table learning screen, then record the second column.
Click here to know more about Web Table recording.

I am using Iterations in WebUI node using the Iterate-on option. It gives an error “Not a table object". Image description

Iterate-on requires a Table type variable as an input. This error occurs if the variable is not of type Table. By default, when the Data table is mapped from preceding node it gets mapped as a text type variable.
In the Variable tab, change it to Table type and select suitable Table Definition and rerun the task.

I have an issue with the recording of the UI node. The issue is when I type into input element of these websites and the element searched is not first in the list, for example, while recording the following element: Image description
For such cases where there can be multiple search results, provide the complete name as follows. Image description

Google Chrome tab is closing unexpectedly while executing the task execution with WebUI node.

The Properties Close Application, Close Application on Error are available for Web UI node. If they are toggled ON, the chrome browser will close after execution or on error. Toggle them to OFF if you want the browser to remain open.

I recorded a Dropdown element, but in Actions, I am not finding 'Select' to pass the values. How do I automate in such scenarios?

If the dropdown element recorded is of type Select:

  1. Choose the action as Select.
  2. Provide data to be selected in the dropdown as input or pass parameters for the value to be selected.

If the type of the control recorded is not Select, in actions Select option will not be there. Image description
In such cases, you need to handle this element dynamically. To know more about Dynamic Scripting, click here.
Use below given dynamic script for the dropdown element.

dr=self.engine.get_driver()
xpath="{ElementXpath}"
ele=dr.find_elements_by_xpath(xpath)
return ele[0].click()

  • Replace the {ElementXpath} with the XPath of the recorded drop-down.
  • Choose the action as Click and provide input for the element that is made dynamic. You can also pass parameters here.
Image description

The script works only for elements whose XPath remains unchanged.

When executing Web UI node, if you get an error “Chrome not reachable…..” or task execution hangs or Chrome browser does not open. Image description
Change the properties of below Chrome Flags

  1. Launch Google Chrome in the default profile.
  2. Navigate to the URL: chrome://flags/#calculate-native-win-occlusion.
  3. Select Disabled from the drop-down.
  4. Image description
  5. Navigate to chrome://flags/#intensive-wake-up-throttling.
  6. Select Disabled from the drop-down. Image description
  7. Click the Relaunch button or close and start Google Chrome.
  8. Navigate to the chrome://flags and verify the flag values are set.
  9. Rerun the task.

In UI automation, I am unable to perform control-based familiarization for an element. I am unable to pass actions to the elements.

You can perform the required actions on these elements using the user defined function Send_Keys.
Create a User Defined function Send_Keys of type UI with the following inputs:

  • Variables: Add an input variable
  • Output Available: Disable
  • Function:


    import clr
    clr.AddReference("System.Windows.Forms")
    from System.Windows.Forms import SendKeys
    import time
    time.sleep(1)
    SendKeys.SendWait(input)

Image description Refer to the modifiers to pass the keys as input to the function. Image description

The variable is not listed for Iterate on option, although the variable is mapped from the preceding node. Image description Image description

This occurs when variables Type is not changed to Table. Iterate on requires a Table type variable as an input. By default, when the Datatable is mapped from preceding node it gets mapped as a Text type variable.
In the Variable tab, change it to Table type and select suitable Table Definition.

During UI automation, when I try to upload a file using file upload button on a website, the task execution hangs.

This occurs when Allow access to file URLs option is not enabled for the chrome extension.
Enable the same to use file upload in chrome mode.

  1. Go to chrome://extensions. Image description
  2. Click the Details button in Jiffy Web Automation Extension.
  3. Enable Allow access to file URLs option.
Image description

Getting the error as "Make sure you have correct version of chromedriver". Image description

This occurs due to a mismatch in Chrome Driver version in C:/python37 folder and the Chrome browser in the Bot machine.

  1. Download the chrome driver which is compatible with the chrome version in Bot machine.
  2. Place it in C:/python37 folder.

Did you find what you were looking for?