HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

FindElement using Locators in Selenium 4, click and sendKeys - Selenium Tutorials

1,529 views July 15, 2020 24:10

Watch on YouTube
ChannelAutomation Zone

Description from the creator

This video will teach you how to identify properties or attributes of elements in a webpage, save them and perform click action on buttons and links and entering text in textbox using the below locators:
By.id("value"); By.name("value"); By.className("value"); By.className("value"); By.linkText("value"); By.partialLinkText("value") By.tagName("value");

 Intro : (0:00)
Inspecting WebElements : (1:33)
Locating By ID : (3:16)
Entering Text in a text box : (6:00)
Locating By Name : (8:06)
Locating By ClassName : (11:06)
Locating By LinkName and PartialLinkName : (14:04)
Locating By TagName : (17:46)
HTML Basic : (18:28)

Playlist : youtube.com/playlist?list=PLcxbJOVMGpYD_e0cVjS1…
OrangeHRM : opensource-demo.orangehrmlive.com/
HTML Tags : w3schools.com/TAGS/default.ASP

Follow Us on Facebook : facebook.com/theautomationzone

Code :
System.setProperty("webdriver.chrome.driver", "C:\\selenium\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("opensource-demo.orangehrmlive.com/";);
driver.findElement(By.id("txtUsername")).sendKeys("Admin");
driver.findElement(By.name("txtPassword")).sendKeys("admin123");
driver.findElement(By.className("button")).click();
driver.navigate().back();
driver.findElement(By.partialLinkText("Forgot your password?")).click();
driver.navigate().back();
driver.findElement(By.partialLinkText("password")).click();

About this tutorial

Automation Zone published this 24:10 video tutorial on July 15, 2020. It has been watched 1,529 times on YouTube.

Category
Education
Duration
24:10
Published
July 15, 2020
Views
1,529
Likes
45

Tags

Share

This tutorial in other languages