Relative Locators Selenium 4

Опубликовано: 18 Май 2022
на канале: Automation Zone
1,821
54

This tutorial will describe how to use selenium relative locators which are available from v4 of selenium. If you are using earlier versions of selenium you may not fine these methods available for you.

Calculator website :- https://theautomationzone.blogspot.co...

Basic selenium :    • Installing Selenium 4 Alpha and First...  
css =    • Complete CSS from Basic to Advance | ...  
xpath =    • Complete Xpath from Basic to Advance ...  

import org.openqa.selenium.support.locators.RelativeLocator;
driver.findElement(RelativeLocator.withTagName("input")
.below(By.xpath("//input[@value='2']"))
.toRightOf(By.xpath("//input[@value='4']"))
);


Смотрите видео Relative Locators Selenium 4 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Automation Zone 18 Май 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,821 раз и оно понравилось 54 людям.