Relative Locators Selenium 4

Published: 18 May 2022
on channel: 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']"))
);


Watch video Relative Locators Selenium 4 online without registration, duration hours minute second in high quality. This video was added by user Automation Zone 18 May 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,821 once and liked it 54 people.