Hello,
I was curious if you are able to use a UiPath CustomID when inspecting source code from webpage to use the ‘Get Text’ activity.
Hello,
I was curious if you are able to use a UiPath CustomID when inspecting source code from webpage to use the ‘Get Text’ activity.
You are wanting to use the CustomID as an identifier for an element that you are trying to grab text from off of a webpage? Is that what you are trying to do? I’m guessing the selector is the same for other elements on the page so you’re having a hard time getting that particular text? You can use the “Get attribute” activity, and say
If(attribute = TheAttributeIWant)
{
Get text
}
You could also use anchor activity to find an element nearby. Trying to help, not sure if this is inline with what you are trying to do.
I have issues with the changing sometimes with my Java application. I always open up UiExplorer, and then open the property explorer, to find specific properties that might be unique or usable for my purpose.
Yes, the web page is dynamic in the sense every page has a different amount of line numbers.
For example, this web page in particular has 12 “line numbers” and the next web page which is identical in what I want to grab instead has the text I want to get on the 17th line number.
I would show an example, but for reasons I am unable.
*edit:
Going through specific element editors I can’t find anything that will change in comparison to the other web pages or anything unique in a sense that works the same for each web page.
I will attempt an anchor and I will let you know.
I figured it out finally, Anchor Base activity ended up being my final solution. It wasn’t the cleanest, but it gets the job done. Thank you very much!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.