How can i automate the particular element using the Inspect elements. For example there is an element i a particular page i need to click the particular element but automating using inspect element in UiPath and not the UI Explorer attributes. Can anyone help on this. Thanks in advance!
in general we would use the click activity
As an alternate you can try using Inject Js Script
Automation an Ui Flow via Inspect Element we do feel that this can be avoided to get the link clicked
You could right-click the element in the Inspect window and select Copy->Copy selector. It will give you a css-selector that you can paste in UiPath selector editor (as the css-selector attribute value). It will work but it’s not a very good selector.
For example, this is the css selector I get for the “Ask Bing Chat” button:
#sb_form > div.below_sbox > div > div > div > div.cdxButtonTray > a
To make a better selector you will need to write the selector yourself using the info from the Inspect window. E.g. example:
<webctrl css-selector='a[role=button][class=cdxButton]' innertext='Ask Bing Chat' />
In your case, your selector should be something like this:
<html app='chrome.exe' title='*' />
<webctrl css-selector='a[id=proceed-link][class=small-link]' innertext='Proceed to *' />
Hi I tried with css-selector. But it is giving the error “Click: The attribute ‘css-selector’ is not supported”
Please find the selector Below,
<wnd app='chrome.exe' cls='Chrome_WidgetWin_1' title='Privacy error - Google Chrome'/>
<ctrl name='Privacy error' role='document' />
<ctrl css-selector='button[id=details-button][class=secondary-button small-link][aria-expanded=false]' innertext='*Advanced*' />
and
<wnd app='chrome.exe' cls='Chrome_WidgetWin_1' title='Privacy error - Google Chrome'/>
<ctrl css-selector='button[id=details-button][class=secondary-button small-link][aria-expanded=false]' innertext='*Advanced*' />
Used versions,
UiPath.UiAutomation.Activities - 22.4.7
Studio version - 2021.10.6
can you please help solving this issue. Thanks in advance!
Have you tested to change ctrl to webctrl?