Selenium 4 Relative Locators | Important Concept in Selenium
Автор: PrinceAutomationDestination
Загружено: 2024-11-28
Просмотров: 387
Описание:
𝐒𝐞𝐥𝐞𝐧𝐢𝐮𝐦 𝟒 𝐑𝐞𝐥𝐚𝐭𝐢𝐯𝐞 𝐋𝐨𝐜𝐚𝐭𝐨𝐫𝐬:
Let us discuss about Relative locators of Selenium 4 which helps locating complex elements which does not have unique attributes and are very difficult to locate.
How to use 𝐑𝐞𝐥𝐚𝐭𝐢𝐯𝐞 𝐋𝐨𝐜𝐚𝐭𝐨𝐫𝐬?
𝐒𝐭𝐞𝐩𝟏: We need to locate one known element which can be located easily using unique elements
Step2: Then with reference to above element we locate relative elements based on visual position.
Selenium 4 has provided 𝟓 𝐑𝐞𝐥𝐚𝐭𝐢𝐯𝐞 𝐋𝐨𝐜𝐚𝐭𝐨𝐫𝐬:
𝟏. 𝐭𝐨𝐋𝐞𝐟𝐭𝐎𝐟: to locate element to the left of specified element
𝟐. 𝐭𝐨𝐑𝐢𝐠𝐡𝐭𝐎𝐟: to locate element to the right of specified element
𝟑. 𝐛𝐞𝐥𝐨𝐰: to locate element below specified element
𝟒. 𝐚𝐛𝐨𝐯𝐞: to locate element above specified element
𝟓. 𝐧𝐞𝐚𝐫: to locate near specified element
Regards,
PrinceAutomationDestination
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: