cancel
Showing results for 
Search instead for 
Did you mean: 

svg element

rebeccabowe
Verified Partner

I am building a process that downloads an excel file full of data however, the download button on the Rigour page is recognised as an “svg” element type. Due to
this, Blue Prism can’t press the button required to download the file. I am
unsure how to make Blue Prism Application Modeler recognise this as a button to proceed
with downloading the report

rebeccabowe_0-1755676676100.pngrebeccabowe_1-1755676703884.png

 

19 REPLIES 19

Hi, here is the attributes I am getting after spying in browser mode:

rebeccabowe_0-1756803377287.pngrebeccabowe_1-1756803389829.png

and here is the attributes I get after spying with UI Automation: 

rebeccabowe_2-1756803519394.png

neither have been fixed - this is just the default attributes I get from both options, directly after spying

 

Hi @Mohamad_Dakkouri,

rebeccabowe_3-1756803850974.png

here is the html code for the button

hi @rebeccabowe 

Do something like this : 

 

Mohamad_Dakkouri_0-1756804535692.png

Tick only Web Path/Xpath and the match index.

Put this expression for Web Path/Xpath : //svg[contains(@class,"MuiSvgIcon-root")]/parent::button[@type="button" and @aria-label="Export"]

for Match Index put

Use then navigate stage and provide this :

Mohamad_Dakkouri_1-1756804692220.png

 

try it and let me know

 

 

 

 

Hi,

I made sure I put it in exactly correct but unfortunately got an error:

rebeccabowe_0-1756805297332.png

 

@rebeccabowe 

Go to the html code and click Ctrl+f then paste the expression that i have send and see if you can find something please

Hi,

I got it working - I copied the XPath from the inspect and pasted it in and now I have it fully working in Control Room - I was able to complete it 5 times successfully! Thank you for all your help!

rebeccabowe_0-1756806582386.png

 

Dear @rebeccabowe ,

I'm happy to hear you that it worked for you but when I look into your Xapth path I'm a bit worried if the div number get changed in future.
Normally the syntax for the Xpath looks like this //button[@id="root"]
When you work with the Xpath and CSS Selectors I would recommend to not use Match Index .
Please reach out to us if you need any help on this  

Could you please try this Xpaths //svg[@data-testid="CloudDownloadIcon"] or //button[@aria-label="Export"]


RPA Lead

Hi, @rebeccabowe ,

Use AA mode to handle this scenario. If it is a Web based application change to Windows first in App modeler & try to spy the element with AA & change back to web based. It will works fine & handle the different modes by exception handling. Please let me know if you face any issues & i can help you on this.

 

Hi, 

I tried the //button[@aria-label="Export"] XPath and it worked! Thank you for all your help!

Rebecca

faheemsd
MVP

Dear @rebeccabowe 

Thank you for confirming.


RPA Lead