I am able to extract to a file, but, the Activity indicates that if the path is left blank, it will be exported to the “ExportedString out argument”.
Where can this be found so the I can access this in later code? I’d like to save this to a variable, as it seems to be the ONLY way I can find the returns the data I need from a web page.
Thank you. I tried FindChildren - but I couldn’t get the actual text of the information on the page - or at least I wasn’t sure how to do it. I think the text area I need the dat from is dynamically created (i.e. only part of it loads, until I scroll on the element). No matter what I do, I cannot get all the text from this box. If I use the Get Text activity, only the first couple of lines are retrieved. If I use Click on element, then Keyboard Shortcuts for CTRL+A and CTRL+C, then retrieve from clipboard, only the first few lines - IF I’m lucky. Mostly, it can’t find the element (I have multiple screens, and it keeps highlighting some phantom element on another screen that doesn’t even have a browser). So far, this has been the only activity that actually consistently gets the data I need - but I just need it as a variable - not a file. I’m pretty surprised at how hard it is just to get the raw web page information. I don’t remember it being this difficult in the past - before being required to use the Use Application/Browser scope. Really seems to have taken control away with this method.
Yeah. Any of those types of Activities only extract what is visible on the screen. I.E. If the box displays 20 lines, it will extract 21, even though there are 51 in total if you scroll down. Its really bizarre. I’ve never encountered such a troublesome Element/Selector before. I just don’t understand what the deal is with this box.
Try getting the element then get the anscentor of it and get the values from that…may be innerhtml will get all details than inner text and then we cna try manipulations
Maybe I’m missing something, but when I Get Ancestor, I don’t get anything from the text box.
May be you can try mouse scroll before extract or can do a page down and then extract?
If I scroll down, I only get the bottom part. I.E. Only what is physically visible gets extracted. The only exception is Export UI Tree - but that doesn’t go to a variable, only a file.
Nevermind. I can’t even get it using Export UI Tree. Somehow I thought that worked, but even that its the same thing - only what’s visible extracts. I’m at a total loss.
Manually if I CTRL+A CTRL+C to copy and paste, it works. When I try to do that in code, it never does. Whether using Get Text, or Copy Selected Text or whatever it is - for some reason UI Path cannot access the non visible information. Its so bizarre.
For anyones future reference, this is a weird activity because for some reason they have set the ExportedString OutArgument to have the [Browsable(false)] tag. This stops the property from being displayed in the Properties window and since its not made available via the activity card its basically made very difficult to access.
Should you need to do it then you can by directly editing the xaml the activity is in.
For example if you have the following xaml code for the activity.
In this one you’ll see the ExportedString attribute is removed and a new node is added to specify that it is outputted to a variable called ‘test’. (Please note this is using a C# project, it should still work as is in a VB.Net project but you can also adjust the node to use the VB syntax.
This now works when you run the workflow to output the value.
I really have no clue why browsable was set to false. Seems like a bug?