https://www.gcreddy.com/2021/08/writing-selenium-test-cases.html
Writing Selenium Test Cases, Select Manual Test Cases, Selenium Test Environment Setup, and write & execute/run Selenium WebDriver Test cases.
To write these Selenium Test cases I used a sample application, You too can use this application for learning/practicing Selenium Test Cases.
Different Types of Steps in Selenium Test Cases
1. Selenium WebDriver Test Step
//Locating an Element and Performing an Action on the Element
driver.findElement(By.name("username")).sendKeys("Srinivas@123");
Or
driver.findElement(By.linkText("Gmail")).click();
2. Declaration Statements(Fields/Variables and Methods)
String line;
int num;
3. Writing Comments (Optional)
//Capture the Current page URL...
4. Programming Code Blocks
if code block
for or while code block
constructor code block,
method code block,
5. Method Call/s
obj.methodName(arguments....)
6. Inserting Verification Points
JUnit or TestNG Assert methods
Example:
Assert.assertEquals(url, "http://gcreddy.com/project/admin/index.php");
Or
Assert.assertTrue(errorMessage.contains("Error: Invalid administrator login attempt.");
7. Excetion handling code (It depends on the Test case functionality)
try...catch blocks
Etc,
8. Inserting Wait Statement/s Or Synchronization Point/s (It depends on the Test case functionality)
9. File handling (Creating and using objects)
Selenium Complete Tutorial
https://www.gcreddy.com/2021/04/selenium-tutorial.html
Selenium Complete Videos and Class Notes PDF
https://videos.gcreddy.com/category/selenium-videos-2/
----------------------------------------
Is Selenium Certification Worthy?
https://www.gcreddy.com/2021/04/is-selenium-certification-worthy.html
Prerequisites to learn Selenium
https://www.gcreddy.com/2020/02/prerequisites-to-learn-selenium.html
Selenium Syllabus
https://www.gcreddy.com/2021/04/selenium-syllabus.html
An Overview of Selenium
https://www.gcreddy.com/2021/04/an-overview-of-selenium.html
----------------------------------------
Java Programing for Selenium
https://www.gcreddy.com/2021/07/java-tutorial.html
Python Programming for Selenium
https://www.gcreddy.com/2021/07/python-tutorial.html
----------------------------------------
1. Introduction to Selenium WebDriver
https://www.gcreddy.com/2021/08/selenium-webdriver-introduction.html
2. Selenium Environment Setup
https://www.gcreddy.com/2021/08/selenium-environment-setup.html
3. Web or HTML Elements
https://www.gcreddy.com/2021/08/web-or-html-elements.html
4. Locating Web/HTML Elements
https://www.gcreddy.com/2021/08/locating-elements.html
5. Actions on Web Elements/Selenium WebDriver API Commands
https://www.gcreddy.com/2021/08/selenium-webdriver-methods.html
6. Handling Web Elements in Selenium
https://www.gcreddy.com/2021/08/handling-web-elements-in-selenium.html
7. Writing Selenium Test Cases
https://www.gcreddy.com/2021/08/writing-selenium-test-cases.html
8. Selenium Cross Browser Testing
https://www.gcreddy.com/2021/08/selenium-cross-browser-testing.html
9. Selenium Data Driven Testing
https://www.gcreddy.com/2021/08/selenium-data-driven-testing.html
10. Page Object Model in Selenium
https://www.gcreddy.com/2021/08/page-object-model-in-selenium.html
----------------------------------------
TestNG Framework for Selenium
https://www.gcreddy.com/2021/08/testng-framework-for-selenium.html
----------------------------------------
Selenium Automation Framework
https://youtu.be/9pu1SgkuXg4
----------------------------------------
Selenium Testing Live Project
https://www.gcreddy.com/2021/08/software-testing-live-project.html
----------------------------------------
Selenium Fresher Resume Preparation
https://www.gcreddy.com/2018/07/selenium-fresher-resume-preparation.html
Selenium Tester Resume
https://www.gcreddy.com/2021/05/selenium-tester-resume.html
----------------------------------------
Selenium Tester Job Responsibilities
https://www.gcreddy.com/2021/09/selenium-job-responsibilities.html
----------------------------------------
Selenium Real Time Interview Questions
https://www.gcreddy.com/2021/05/selenium-real-time-interview-questions.html
----------------------------------------