0% found this document useful (0 votes)
7 views20 pages

Selenium Automation Practice Guide

Uploaded by

Sofia lourdu
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views20 pages

Selenium Automation Practice Guide

Uploaded by

Sofia lourdu
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Day 1:

=====

[Link] is Selenium?
[Link] version currently you are using in selenium?
[Link] are the drawback in selenium?
[Link] are the components in Selenium?
[Link] is selenium Grid?
[Link] is a difference between selenium webdriver and selenium RC?
[Link] to open the Browser?
[Link] to open a webPage?
[Link] to get the page url?
[Link] is a difference between close and quit method?

PROGRAMS:
-----------------
[Link] Naukri-------->[Link] in
Chrome Browser
[Link] snapdeal--------->[Link] in edge
Browser
[Link] BookMyShow--->[Link] in gecko
Browser

[Link] the Title and Url of Each Webpage:


[Link]---->[Link]
[Link]---->[Link]
[Link]------->[Link]
[Link]---------->[Link]
[Link]---------->[Link]

Day 2:
=====

[Link] are the locators available?


[Link] are the direct loactors?
[Link] one is the fastest locator?
[Link] are the methods available in webdriver Interface?
[Link] are the methods available in webelement Interface?
[Link] to find the webelement?
[Link] is colour of tagname,attribute name,attribute value?
[Link] is DOM?
[Link] which class all the locator methods are avilable?
[Link] webdriver is a class?

PROGRAMS:
-----------------
Locate the webElement using Direct Locators

Qntn 1:
----------
URL:[Link]

[Enter any location]

Qntn 2:
---------
URL:[Link]

[ Press the Login button and pass the username & password ]

Qntn 3:
----------
URL:[Link]

[Enter the username as Raja and password as 123456]

Qntn 4:
----------
URL:[Link]
[Link]/web/[Link]/auth/login

[Enter the username as Admin and password as Admin123]

Qntn 4:
----------
URL:[Link]

[Enter mobile number/email.]

Qntn 5:
---------
URL:[Link]
[Just enter the values for the textbox only.]

Qntn 6:
---------
URL:[Link]

[Enter Email or Phone and Password.]

Qntn 7:
---------
URL:[Link]

[Fill the grand parent 1 and grand parent 2 details]

Qntn 8:
----------
URL:[Link]

[Enter Selenium Web driver]

Qntn 9:
---------
URL:[Link]

[Enter Email or Phone and Password]

Qntn 10:
----------
URL:[Link]
s/

[Click about]

DAY 3
======

[Link] we go for xpath?


[Link] are the types of xpath?
[Link] is the syntax of xpath?
[Link] is the syntax of xpath with index?
[Link] is a diffrence b/w absolute and relative xpath?
[Link] to pass the values to textboxes?
[Link] is the method used to perform click?
[Link] is known as Root element?

Programs:
-------------
Locate the webElement using other attribute(XPATH)

Qntn 1:
---------
URL : [Link]

[Click Login and Entere Username password ]

Qntn 2:
---------
URL:[Link]

[Enter username and password and click Login]

Qntn 3:
----------
URL:[Link]

[Click Authorize and pass client id]

Qntn 4:
----------
URL:[Link]

[Click here--->Then]

Qntn 5:
--------
URL:[Link] --->Enter the username and password

Qntn 6:
---------
URL : [Link] Enter From ,TO
and click search trains

Qntn 7:
---------
URL : [Link]
------------->Enter Mobile number and click continue

Qntn 8:
-----------
URL : [Link] Fill the
details and register the form.

NOTE : Locate the webElement using other attribute(XPATH) and using


index position
=====

Qntn 9:
--------
URL:[Link] -----> Click create new account button
and Fill all the details

Qntn 10:
---------
URL:[Link] -------> Fill the
details and Click Learn More

Qntn 11:
----------
URL:[Link]
Providers/nct-11276455 -----> Click advertise and Fill the details

Day 4
=====

[Link] will u find a text?


[Link] me the syntax of text and contains?
[Link] to print paragraph in a webpage?
[Link] is a purpose of getText() method?
[Link] is a return type of getText() method?
[Link] is a purpose of getAttribute() method?
[Link] is a return type of getAttribute() method?
[Link] to get a user input?
[Link] which interface getText() and getAttribute() methods are
presented ?
[Link] is a purpose of debug?
PROGRAMS:
-----------------
Locate using Text

Qntn 1:
----------
URL:[Link] ------------>Click any
product ,then add to the cart

Qntn 2:
---------
URL:[Link] ------------------> Get the text
starts from Books published by...........

Qntn 3:
----------
URL:[Link] ------------------> Click the
Software blog

Qntn 4
----------
URL:[Link] ------------------> Print the
details of featured books

Qntn 5
---------
URL:[Link]
>Click here--->Then Click Contact List doc Environment---> Then No
Environment

Qntn 6
---------
URL : [Link] -----------> Pass the values to email
and [Link] the user Inputs

Qntn 7
---------
URL:[Link] -----------> Search HeadPhones and
click the fst product

Qntn 8
----------
URL: [Link] ------------>Search
any product and click 1st product

NOTE: Locate using partial text


=====
Qntn 9
----------
URL:[Link]
nadu/chennai/co-----> Print the paragraph starts from Desihands....

Qntn 10
-----------
URL:[Link] ------------> Print Stack Cash Back on
top of holiday sales

Day 5
=====

[Link] actions is a class or interface?


[Link] is purpose of Actions Class?
[Link] is the object creation syntax of Actions?
[Link] are the methods available in actions class?
[Link] to right click?
[Link] is mandatory method in actions?
[Link] is a difference between build() and perform()?
[Link] is possible to achieve keyboard related operations in actions?
[Link] to move your cursor?
[Link] between actions and Robot?

PROGRAMS:
-----------------
Actions ---->Mouse Related operations

Qntn 1
--------
URL:[Link]

[ Move ur cursor to our culture and click Awards & Recognition ]

Qntn 2
---------
URL:[Link]
[ Click Gift finder and move ur cursor to Electronics ]

Qntn 3
---------
URL:[Link]

[ Move ur cursor to services and click Web Development ]

Qntn 4
---------
URL:[Link]

[Drag the high tatras to Trash ]

Qntn 5
---------
URL:[Link]
[Link]

[ Drag the capitals to its countries ]

Qntn 6
---------
URL:[Link]

[ Move ur cursor Home & Furniture then click bedsheets ]

Qntn 7
--------
URL:[Link]

[signin is a first mouseover then Click SD Cash ]

Qntn 8
----------
URL:[Link]

[ Right click and click inspect ]

Qntn 9
----------
URL:[Link]

[ Enter ur name and Double click ]


Qntn 10
----------
URL:[Link]

[ Pass the values to email and copy & paste it in password field ]

DAY8
----
Alerts
Frames

QUESTIONS(Theory)
-----------------
[Link] is an Alert?
[Link] are the types of Alert?
[Link] a code to perform Alert?
[Link] can we do to click Ok button in alert?
[Link] can we do to click Cancel button in alert?
[Link] alert is an interface or class?
[Link] is mean by frames?
[Link] are the arguments we pass on frames?
[Link] a code for switching the alert?
[Link] a code to switch frames?
[Link] is the method switch the alert and frame?

QUESTIONS(Practical)
--------------------
QUESTION 1:
----------
URL :
[Link]

NOTE: Click button to display an alert box and click ok button

QUESTION 2
----------
URL : [Link]

NOTE: Click Alert with ok & cancel button and Click button to display
an confirm box Perform confirm alert.

QUESTION 3
----------
URL :
[Link]

NOTE: Click Alert with textBox button and Click button to demonstrate
an prompt box Perform prompt alert.

QUESTION 4
----------
URL :
[Link]
5.1533883212-608727520.1532670997

NOTE: Click continue without enter the user id and handle popup.

QUESTION 5
----------
URL : [Link]
NOTE: Click Continue To Login and click Login without enter the user
id.

QUESTION 7
----------
URL : [Link]

NOTE: Enter the userId,click [Link] password.

QUESTION 8
----------
URL :
[Link]
UP_ID__=AuthenticationFG&__START_TRAN_FLAG__=Y&FG_BUTTONS__=LOAD&ACTI
[Link]=Y&AuthenticationFG.LOGIN_FLAG=1&BANK_ID=ICI

NOTE: Enter the userId password.


Click login button

QUESTION 9
----------
URL : [Link]
NOTE: click Login without enter the user id & password.
DAY9:
-----
JavaScript

QUESTIONS(Theory)
------------------
[Link] is mean by JavaScript?
[Link] JavaScript is a class or Interface?
[Link] method is used to get the font size of the WebElement in a
webpage?
[Link] method is used to get the Color of the WebElement in a webpage?
[Link] a code to highlight the WebElement in a webpage?
[Link] a code to get the InnerText and Title of a webpage using
Javascript?
[Link] a code to perform scrollUp in a webpage using Javascript?
[Link] a code to perform scrolldown in a webpage using Javascript?
[Link] is the method available to run the Javascript?
[Link] a code to click a button using JavaScript?
[Link] a code to insert a value in textBox using JavaScript?

QUESTIONS(Practical)
-------------------
QUESTION 1
-----------
URL : [Link]

NOTE: Go to down of the webpage using scrolldown and print the line
"Automated Testing"

QUESTION 2
-----------
URL : [Link]

NOTE: Go to "Live E-Commerce Project" using scrolldown.


QUESTION 3
-----------
URL : [Link]
NOTE: : Enter the mobile number and click continue button using
JavaScript.

QUESTION 4
-----------
URL : [Link]

NOTE: Enter the email & password and click login button using
JavaScript.

QUESTION 5
-----------
URL : [Link]

NOTE: Enter the username & password and click login button using
JavaScript.

QUESTION 6
-----------
URL : [Link]
NOTE: Enter the email & password and click login button using
JavaScript.
print the user entered input

QUESTION 7
--------------

URL : [Link]

NOTE: Scrolldown till "Recent Articles".

QUESTION 8
-----------
URL : [Link]

NOTE: Scrolldown till "Selenium Training Benefit" and print the word
"Selenium Training Benefit"

QUESTION 9
-----------
URL : [Link]

NOTE: Scroll Down till "Shop"

DAY10
----
Screenshot

QUESTIONS(Theory)
-----------------
[Link] will you take a screenshot in selenium?
[Link] what reason we have to take screenshot?
[Link] TakesScreenshot is a class or interface?
[Link] what place the screenShot will store in default?
[Link] a code to perform Screenshot?
[Link] FileUtils is a class or interface?
[Link] we want to change the location of the Screenshot What can
we do?

QUESTION 1
----------
URL :[Link]
NOTE: Take screenshot of homepage.

QUESTION 2
------------
URL : [Link]

NOTE: Search watch and take the screenshot.

QUESTION 3
-----------
URL : [Link]

NOTE: Search laptop and take the screenshot.


QUESTION 4
------------
URL : [Link]

NOTE: Mouse Over Home & Furniture and take the screenshot.

QUESTION 5
-----------
URL : [Link]

NOTE: Mouse Over Kids & Baby and Take the screenshot

QUESTION 6
-----------
URL : [Link]

NOTE: search iphone 14 pro and take the screenshot .

QUESTION 7
------------
URL : [Link]

NOTE: Mouse Over Beauty and click hair oil and take the screenshot.

SELENIUM
---------
DAY11
---------
Drop Down

QUESTIONS(Theory)
-----------------
[Link] is the purpose of DropDown?
[Link] will you perform DropDown?
[Link] are the methods available in Select class?
[Link] we deselect the options in DropDown?
[Link] a code to print selected options in DropDown?
[Link] a code to deselect the selected options in DropDown?
[Link] are the ways to select DropDown options?
[Link] Select is a interface or class?
[Link] a code to print all the options in DropDown?
[Link] we select multiple values in DropDown?
[Link] will select multiple values in DropDown?

QUESTIONS(Practical)
--------------------
QUESTION 1
----------
URL : [Link]

NOTE: print all the even option in State

QUESTION 2
----------
URL : [Link]
NOTE: print all the odd option in State

QUESTION 3
----------
URL : [Link]

NOTE: Print all the options in year using getAttirubute() method

QUESTION 4
----------
URL : [Link]

NOTE: Print all the options in month using getText() method

QUESTION 5
-----------
URL : [Link]

NOTE: print the even dates

QUESTION 6
-----------
URL : [Link]
NOTE: print all the option of skills using getText() methods

QUESTION 7
-----------
URL : [Link]

NOTE: print all the option of country using getAttribute() method


Register Form

QUESTION 8
------------
URL : [Link]

NOTE: Book room and print order no.

QUESTION 9
-----------
URL : [Link]

NOTE: print all the option in Room Type available.

QUESTION 10
-----------
URL : [Link]

NOTE: print all the option in Location available.

QUESTION 11
-----------
URL : [Link]

NOTE: print No of option available in Adults per Room

QUESTION 12
-----------
URL : [Link]

NOTE: Select Even Option availble in Standard multi select


Find out number of option not selected

QUESTION 13
-----------
URL : [Link]

NOTE: Select All availble in fruits


Print first selected option

DAY12
--------
WebTable

QUESTIONS(Theory)
-----------------
[Link] is mean by webtable?
[Link] is the use of webtable?
[Link] which tags webtable is present in html?
[Link] tag is used to mention the table row and table data ?
[Link] a code to display all the Colum Name from the table?
[Link] a code to display all the data from the table?
[Link] there are multiple tables available in [Link] Will you
display the any specified particular webtable data?
[Link] a code to print the rows alone form the webtable?
[Link] a code to print all the data's from the webtable using
enhanced for loop?
[Link] a code to print the table headers from the WebTable?

QUESTIONS(PRACTICAL)
-------------------

QUESTION 1
----------
URL : [Link]
NOTE: Find out Number of rows available in webPage

QUESTION 2
----------
URL : [Link]
NOTE: Print all details available in 4th row webtable

QUESTION 3
----------
URL : [Link]

NOTE: Print Even rows available in 2 nd cell

QUESTION 4
----------
URL : [Link]

NOTE: Print all the content in the dymaic webtable.

QUESTION 5
----------
URL : [Link]

NOTE: Print all value in first row

DAY13
------------
Windows Handling

QUESTIONS(Theroy)
-----------------
[Link] is the purpose of windows Handling?
[Link] a code to perform windows Handling?
[Link] method is used to get parent window?
[Link] method is used to get child windows?
[Link] a code to switch from parent window to child window?
[Link] which order the windows order will arrange?
[Link] a code to return to your parent window?
[Link] is the return type of getWindowHandles()?
[Link] is the return type of getWindowHandle()?
[Link] a code to switch to 7 th child window?
[Link] a code to switch to 5 th child window without using any for
loop?
[Link] a code to switch multiple windows?

QUESTIONS(Practical)
--------------------
QUESTION 1
----------
URL : [Link]

NOTE: Search iphones 14 pro and right click 1st phone and give open
in new window .print cost of product

QUESTION 2
----------
URL : [Link]

NOTE: Search toys and click 1st toy add it to cart.


print the you pay cost displayed.

QUESTION 3
----------
URL : [Link]

NOTE: Search watch and click 1st watch


add it to cart.
print the you pay cost displayed.

QUESTION 4
----------
URL : [Link]

NOTE: Search fan


click 1st fan and click the remote control included

QUESTION 5
----------
URL : [Link]

NOTE: Search hand sanitizer and click any hand sanitizer


add it to cart

QUESTION 6
----------
URL : [Link]

NOTE: Search redmi phone and click any phone


print price amount
QUESTION 7
----------
URL : [Link]

NOTE: Search mask and click any mask


Enter delivery pincode

QUESTION 8
----------
URL : [Link]

NOTE: Search hp laptop and click 1st hp laptop


print cost of laptop

You might also like