I’m having trouble using uipath.uiautomationNext.Activities.NGetText to read values from a web page in Chrome. The page uses Material‑UI, and the grid values I need to extract are inside <p> tags that sit above corresponding <input> fields.
Here is the HTML structure for one of the grid items:
A6
There are three such grid items, with values like A6, B5, H8, and the input IDs are:
app-challengescreen-cell-answer-0
app-challengescreen-cell-answer-1
app-challengescreen-cell-answer-2
I tried to
using an anchor + strict selector:
Also tried :
both failed with Could not find the UI element corresponding to this selector.
Is there a correct way to navigate from the input filed to the
element using UiAutomationNext selectors?
Any guidance would be greatly appreciated.
One more thing I wanted to mention is, this stopped working starting this week and we recevied new chrome update (version 149.0). I have seen other UiPath consumers reported this issue and I followed the commands mentioned here to see if the issue resolves but no help - UiPath Fail to Communicate with Chrome after Chrome update - #4 by ashokkarale
If you having the issue with chrome update you may recieve different error, this issue might be selector issue, try to use UiExplorer to indicate proper selectors, select appropriate attributes.
Try updating the UiPath UIAutomation package to the latest 2024.10 compatible version and verify UiPath extension for Chrome is enabled or not. Use UI Explorer to confirm whether the <p> tag is being detected or not after the Chrome update.
If UI Explorer cannot identify the <p> element, this may indicate a compatibility issue between Chrome 149 and the current UIAutomation package version.
Now I’m getting this incompatible error. I don’t even have the v6.20.0 available, latest version I have available is v6.14.3. Other versions available are preview versions.
Studio version I’m using - 2024.10.1
This version of the OCR.Activities package is incompatible with UiPath.IntelligentOCR.Activities older than v6.20.0, UiPath.PDF.Activities older than v3.20.0, UiPath.DocumentUnderstanding.ML.Activities older than v1.29.0, UiPath.OmniPage.Activities older than v1.20.0
I was able to resolve the compatiblity issues by downgrading UiPath.OCR.Activities to 3.20.3
Also solved my original issue of reading gird value. Rather than relying on p element, I’m retrieving the entire grid values and then used SubString to split the retrieved grid values. Hopefully this works consistently.