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 - 3: Selenium Locator
[ Ссылка ]
Selenium - 2: Selenium Hello World [ Ссылка ]
Selenium - 1: Introduction to Selenium [ Ссылка ]
For more info, please see the video.
CHECK OUT CODING SIMPLIFIED
[ Ссылка ]
★☆★ VIEW THE BLOG POST: ★☆★
[ Ссылка ]
I started my YouTube channel, Coding Simplified, during Dec of 2015.
Since then, I've published over 500+ videos.
★☆★ SUBSCRIBE TO ME ON YOUTUBE: ★☆★
[ Ссылка ]
★☆★ Send us mail at: ★☆★
Email: thecodingsimplified@gmail.com
Selenium - 5: End to end test script using Selenium
Теги
TutorialCodingSimplifiedselenium tutorialselenium introductionselenium introcoding simplifiedunderstanding selenium end to end testing. seleniumselenium navigate backselenium how to go backselenium how to go forwardselenium how to close the current tabselenium how to close all tabsselenium quit the browserselenium how to get textselenium how to find elementsselenium how to put textselenium how to assert valuesclick the elementmaximize browser