Most commonly used Selenium java commands | Selenium Web Automation Tutorial for Beginners Part #2

Published: 26 February 2021
on channel: Cool IT Help
218
6

Hello Friends,
In this tutorial, we will discuss the use of the most commonly used selenium commands and functions to write automation scripts in eclipse. with the help of these commands, we will open chrome and visit a web URL through selenium. I have explained the whole process step by step in an easy way. Please watch the complete video for a better understanding of base concepts.

1) Navigate to any url
driver.get("URL")

driver.get() method is used to open an URL and it will wait till the whole page gets loaded. WebDriver will wait until the page has fully loaded before returning control to your test or script.

2) How to find any element on brower?
driver.findElement(By.id("ContactForm1_contact-form-name"))

3) How to write some text in textfield?
element.sendKeys("inputtext")

4) How to clear a textfield?
element.clear()

5) How to detect the button and do click on it.
element.click()

If you found this video tutorial useful and would like to support me, you can do so by buying me a coffee using the below link!
https://buymeacoffee.com/CoolITHelp

#MostUsedSeleniumCommands #CoolITHelp #SeleniumTutorialForBeginners


Watch video Most commonly used Selenium java commands | Selenium Web Automation Tutorial for Beginners Part #2 online without registration, duration hours minute second in high quality. This video was added by user Cool IT Help 26 February 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 218 once and liked it 6 people.