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