Get Full Text on a div with an id that is changing

Hello,

I’m working on automation with Zendesk. I want to get the text of a div inside a ticket. So I used “Get Full Text” activity with the following selector :

<html title='Title'/>
<webctrl omit:css-selector='body&gt;div&gt;div&gt;div&gt;div&gt;section&gt;div&gt;div&gt;div&gt;div&gt;div&gt;div&gt;div&gt;div&gt;div&gt;div&gt;div' parentid='ember4451' tag='DIV' />

It’s targeting the correct element but if I refresh the Zendesk page, the id “ember4451” will change an another id for the same element. For me it’s a very bad usage of ids but I can’t change the Zendesk code :smiley:

Any idea how to do a workaround for that ?

@promo

Try Anchor Base, then choose one static element as Anchor and use the “Get Full Text” activity inside that. It may help

1 Like

Use UiExplorer and find a stable selector

Thanks,
Prankur

@shankm
Thank you, it seems to work with Anchor base I didn’t know this activity before :wink:

@PrankurJoshi
Thank you… I know that I had to find a stable selector…

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.