P43 - How To Get Text Of Elements In Selenium?|What is getText() method? Selenium4 MalayalamTutorial
Автор: Tech Edu Hub Malayalam
Загружено: 2023-05-21
Просмотров: 136
Описание:
How To Get Text Of An Element In Selenium? |What is getText() method? Selenium4 Malayalam Tutorial
Please find the Selenium code below:
public static void main(String[] args) {
//Loading the Driver
WebDriver driver = new ChromeDriver();
//Lauching the URL
driver.get("https://www.facebook.com/");
WebElement fbTagline = driver.findElement(By.tagName("h2"));
System.out.println(fbTagline.getText());
WebElement loginBtn = driver.findElement(By.name("login"));
String loginBtnText = loginBtn.getText();
System.out.println(loginBtnText);
}
#testng #testNGtutorial #assert #seleniumwebdriver #selenium #seleniumtutorial #technology #webdriver #java #javaprogramming #coding #xpath #testing #testingtools #automation #automationinmalayalam #seleniumtesting #seleniumautomation
Повторяем попытку...

Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: