End to end Selenium testing:
- Create Maven project
- Add the selenium dependancy in mavan project in pom.xml
- Add the junit dependancy in maven project in pom.xml
- Add Java class in test folder
- Add chrome driver in Test class
- Open webpage using driver.get(website)
- maximize the windows using driver.manage().window().maximize()
- Find element & set text for Username & password present in website using By.id & sendKeys()
- Click on button using click()
- Execute the script
- Verify on next page elements using By.className & getText()
- Using Assert we can verify text using Assertion class of junit (assertEquals)
- using Thread.sleep(time), we can wait
- Go to back using driver.navigate().back()
- Go to forward using driver.navigate().forward()
- Using driver.close(), it'll close current Browser Tab/window
- Using driver.quit(), it'll close all Browser Tabs/window
Selenium - 4: Selenium xPath Locator
• Selenium - 4: Understanding Selenium ...
Selenium - 3: Selenium Locator
• Selenium - 3: Understanding Selenium ...
Selenium - 2: Selenium Hello World • Selenium - 2: Selenium Hello World Ex...
Selenium - 1: Introduction to Selenium • Selenium - 1: Introduction to Seleniu...
For more info, please see the video.
CHECK OUT CODING SIMPLIFIED
/ codingsimplified
★☆★ VIEW THE BLOG POST: ★☆★
http://thecodingsimplified.com
I started my YouTube channel, Coding Simplified, during Dec of 2015.
Since then, I've published over 500+ videos.
★☆★ SUBSCRIBE TO ME ON YOUTUBE: ★☆★
https://www.youtube.com/codingsimplif...
★☆★ Send us mail at: ★☆★
Email: [email protected]