How to write xpath in Selenium when properties has no unique values?

preview_player
Показать описание
In this video will see how to take xpath in selenium when there are no unique values are present any element or attribute values are dynamic(changing on every page load).

Details:
Рекомендации по теме
Комментарии
Автор

Thanks, I got the solution from your video.. I hope Indexing will be allowed in our company

natashakaul
Автор

Thanks a lot ma'am now all ecommerce website will be automated.😊

VipinSingh-jfys
Автор

Thank you. It helped me to solve my query.

Hari_Snap_
Автор

We should not use index.. because that element will change to next index wat will you do? If the element place change also it should locate the same element...

mannojkp
Автор

I have a reference file where I have stored all the Xpath that are used in my project. The script was working fine but for the last few days I am getting an error message - 'Index out of bound'.
I showed it to one colleague he said to change the sequence of the Xpath i.e. Cut and paste the XPath of the web element where the script is failing to the top of the page(reference file) and it somehow worked.
But this is not the solution though as other people in the project area also updating that file and somehow the sequence is getting changed after some time and I am getting the same error again for one web element or another.
Any idea about this issue?

dev
Автор

I have input as HTML tag and everytime page gets loaded, id value gets change, also rest of the elements are not unique.. can you please help me in this.

natashakaul
Автор

In some companies, indexing is not allowed. Then what will you do?

infotainmentxpress
Автор

indexing is not allowed then kindly make videos which do not contains index method
🙃

Shivam