Selenium Test Cases

Create Test Cases using Selenium WebDriver

Pre-requisites for Creating Test cases in Selenium WebDriver:
 

i) Element Locators (To identify/recognize Elements(Objects)

ii) Webdriver Methods (To perform Operations on Elements)

iii) Java Programming concepts (To enhance Test cases)

 ---------------------------------------
iv) TestNG Annotations (For grouping test cases, generating HTML reports and parallel test case execution)
---------------------------------------------
i) Element Locators
 

1) id

2) name

3) classname

4) tagName

5) linkText

6) partialLinkText

7) cssSelector

8) xpath
----------------------
Web Elements
 

Browser,
Page,
------------------
Button,
Link
Text box
Edit box
Check box
Radio button
Drop down box / List box / Combo box
Web Table / HTML Table
Frame
---------------
Mouse hover
Span
Multiple Browsers
Duplicate Objects
---------------------------
Selenium WebDriver Methods
 

a) Methods on Browser
 ---------------------
1) get()

2) getTitle()

3) getpageSource()

4) getCurrentUrl()

5) getWindowHandle()

6) close()

7) quite()
--------------------------------
b) Browser navigation methods
 

1) navigate().to()

2) navigate().back()

3) navigate().forward()

4) navigate().referesh()
------------------------
c) Methods on Elements
 

1) findelement()

2) findelements()

3) sendkeys()

4) click()

5) clear()

6) isEnabled()

7) isdisplayed()

8) isSelected()

9) getText()

10) selectByVisibleText()

11) selectByIndex()
----------------------------
d) Others
 

manage().window().maximize()

explicitlyWait()

etc...
--------------------------------------
Java Programming Concepts
 

A) Java Fundamentals / Basics
 
1) Comments

2) Data Types

3) Modifiers

4) Variables

5) Operators

6) Conditional statements

7) Loop statements

8) Strings

9) Arrays

10) Built in Methods

11) User defined methods

12) File and IO operations

13) Exception handling
-----------------------------------
B) Object Oriented Programming System Concepts

 
1) Inheritance

2) Polymorphism

3) Abstraction

4) Encapsulation
-------------------------------

0 comments:

Post a Comment