Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

How to locate the element

$
0
0
Hello Alex,

I can't attach .zip files because Allowed extensions: .jpg, .jpeg, .gif, .png.

Ah, I see you're right. I was unaware of this restriction. My apologies.

Personally I try to avoid using TagIndex when the index value is above 9. The higher the index value the more brittle using TagIndex becomes for the very reason you already ran into "that one record was added to the main grid".

When faced with an element that doesn't have static unique properties I can use to locate it I will use what we call a "chained find expression" instead. The concept is to locate some sort of container/wrapping element first, such as a <div>, then under that element find the one I want, possibly using TagIndex or some other unique property. Maybe I can use the class attribute or hret of src.


Regards,
Cody
Telerik 

Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>