Href not returning any value

Hi All,

I am using Get Attribute to get the href value of link. The link is dynamic in nature for every transaction . I have taken the link name in variable. but Get Attribute is giving null value for href. The yellow highlighted is my href link.

This is my selector in UI Explorer.

Hi,

It seems you chose SPAN tag. For now, can you try to choose A tag inside Span tag if exists? VisualTree of UiExplorer may help you to choose it.

Regards,


I have choosen something like this : Let me know if thats correct

Hi,

In the image, there is href attribute. Is this what you need? (It may be necessary to add protocol and hostname like https://hostname)

Regards,

@Yoichi

Yea i need the href attribute and the problem is I am getting href same even though i have taken the aaname as variable

Hi,

I think we can get href attribute from the element. Can you try to set it in GetAttribute activity then check return value?

Regards,

@Yoichi

The return value is same for all the elements. Since its dynamic it should return different values. I have taken aaname as variable still it gives the same href value. Here my opportunity name is dynamic which i kept in a variable but i am not getting dynamic variable

Hi,
All right. Probably, it’s not what we expect.
Can you also check if there is A tag under the SPAN tag? If exists, can you select it?

image

If there is no A tag, there is no href attribute because it may use javascirpt etc.

Regards,

1 Like

@Yoichi

.There is no A tag

@Yoichi @Anil_G

Any help on this ?

@marina.dutta

Is the relative url that i see lighting/opportunity is what you are looking to get?

Can you select that element and check

Cheers

@Anil_G

The only difference I could find is aaname and title =Quotenumber which I took variable. Attached the selectors in notepad. I could see rest all is same except aaname and title =Quotenumber

(First Selector)

(Second Selector)

(Third Selector)

selector.txt (5.2 KB)

@marina.dutta

Check what are the differences if the casing is different or spaces for casing use case sensitive in selector…if spaces or others thing we cna use regex or * in selector to avoid them

Cheers

@Anil_G

any help on this ?

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