In this tutorial, you will Learn how to Find element by Class Name using Selenium Java.
public class ClassNameLoc {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.setProperty("webdriver.chrome.driver","./software/chromedriver.exe");
WebDriver driver=new ChromeDriver();
//driver.get("file:///C:/Users/Windows%208.1/Downloads/locator/classNameloc.html");
//WebElement ele = driver.findElement(By.className("c1"));
//ele.click();
driver.get("https://www.amazon.com/b/?node=203384...");
WebElement ele = driver.findElement(By.className("nav-input"));
ele.sendKeys("selenium by class Name");
}
On this page of the site you can watch the video online Find element by Class Name Selenium Java with a duration of online in good quality, which was uploaded by the user AllSoftwareProgramming 05 August 2020, share the link with friends and acquaintances, this video has already been watched 722 times on youtube and it was liked by 3 viewers. Enjoy your viewing!