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.

This can occur due to multiple reasons:
  1. Check if the developer mode is enabled for chrome extension, if not enable the same and restart the browser. Image description
  2. Ensure that you have selected the screen in Jiffy UILearn dialog box, in the screenshot below. Either select the existing Screen available in the dropdown or you can type a screen name you want to give, and it creates a new screen. 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.
  3. The control has not moved to the new tab: Use the function Switch tab in the browser to navigate the control to the new tab before performing the steps on the controls in the new tab.

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 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

While executing the WebUI node, I am getting the error as "Process exited with an error: 1 (Exit value: 1) [Error: importerror: dll load failed: %1 is not a valid win32 application.;] ". Image description

  1. Uninstall the Jiffy Python versions and remove their paths in the environmental variables.
  2. Uninstall the jiffy client.
  3. Restart the machine.
  4. Re-install the jiffy client.

WebUI node fails with error message "stale element reference element is not attached to the page document…" error. Image description

This error occurs when the Chrome driver version does not match with the version of Chrome browser.

  1. Download the Chrome driver which is compatible with Chrome browser version.
  2. Use predefined function Delay In Seconds to add a 5 seconds delay, provisioning time for the element to load before the element click step in Actions tab.
  3. Rerun the Web UI node again.

Unable to record elements for automation. Getting a warning “UILearn is not installed…..” Image description

This error occurs if all Jiffy files are not installed properly due to anti-virus blocking the installation.
Check if wpfbase.exe is present in C:\jiffyservice\Learn, If not present, place the file there and restart the recording.
You can also stop the antivirus and reinstall Jiffy Client.

In input fields if I provide " ", it is changed to "& quot;", for example, “Mobile” is converted as "& quot;"Mobile"& quot;". I am unable to perform web automation due to this. Image description

Add a function to convert the entire input including quotes to a string, for example, return str(input_text) and use the converted string as input for the web automation. Image description Image description

When executing WebUI node, getting "Python path is missing" error. Image description

This can occur when there are multiple versions of Python installed in the system.
Uninstall all the already existing versions of Python from the system, remove the path from environment variables and uninstall Jiffy client.
Restart the machine and reinstall Jiffy client.

When executing WebUI node, getting "Chrome Extension is not found or disabled" error. Image description

In the Web UI Configurations, use Chrome Deprecated mode for Browser.

Image description


This can occur when there is any empty step in Actions tab of WebUI node. Please delete the empty step, if present. As in the screenshot below, Step1 needs to be deleted. Image description

Image description
Image description


Close the Excel file if it is open, before executing the task.

Even though Run even if locked option enabled in advanced properties of the Web UI node, the task is failing if the machine is locked.

The property Run even if locked fails if the WEB UI node has the Image or text-based elements in it. To overcome this, use the Login node in the task so that the bot logs in to the machine and executes the task successfully.

There is a UI element that appears only after scrolling down the webpage. During the execution, the bot is unable to scroll down to the check box and throws up an error "Element not found error". Image description

Jiffy scrolls down to the element automatically. But if it throws the error “Element not found error”, use the following selenium expression to scroll down to the element in the dynamic script of the UI Control.

x = ‘xpath of the element'
driver=self.engine.get_driver()
target=driver.find_element_by_xpath(x)
driver.execute_script('arguments[0].scrollIntoView(true);', target)
return target

Did you find what you were looking for?