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

Selenium Task

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)
23 views20 pages

Selenium Task

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
You are on page 1/ 20

Day 1:

=====

1.What is Selenium?
2.Which version currently you are using in selenium?
3.What are the drawback in selenium?
4.What are the components in Selenium?
5.What is selenium Grid?
6.What is a difference between selenium webdriver and selenium RC?
7.How to open the Browser?
8.How to open a webPage?
9.How to get the page url?
10.What is a difference between close and quit method?

PROGRAMS:
-----------------
1.Open Naukri-------->https://www.naukri.com/ in
Chrome Browser
2.Open snapdeal--------->https://www.snapdeal.com/ in edge
Browser
3.Open BookMyShow--->https://in.bookmyshow.com/ in gecko
Browser

4.Get the Title and Url of Each Webpage:


a.Facebook---->https://www.facebook.com/
b.Instagram---->https://www.instagram.com/
c.Flipkart------->https://www.flipkart.com/
d.Youtube---------->https://www.youtube.com/
e.Zoom---------->https://zoom.us/

Day 2:
=====

1.What are the locators available?


2.What are the direct loactors?
3.Which one is the fastest locator?
4.What are the methods available in webdriver Interface?
5.What are the methods available in webelement Interface?
6.How to find the webelement?
7.What is colour of tagname,attribute name,attribute value?
8.What is DOM?
9.In which class all the locator methods are avilable?
10.Is webdriver is a class?

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

Qntn 1:
----------
URL:https://www.swiggy.com/

[Enter any location]

Qntn 2:
---------
URL:https://www.demoblaze.com/

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

Qntn 3:
----------
URL:https://www.saucedemo.com/

[Enter the username as Raja and password as 123456]

Qntn 4:
----------
URL:https://opensource-
demo.orangehrmlive.com/web/index.php/auth/login

[Enter the username as Admin and password as Admin123]

Qntn 4:
----------
URL:https://www.snapdeal.com/login

[Enter mobile number/email.]

Qntn 5:
---------
URL:https://www.techlistic.com/p/selenium-practice-form.html
[Just enter the values for the textbox only.]

Qntn 6:
---------
URL:https://www.facebook.com/

[Enter Email or Phone and Password.]

Qntn 7:
---------
URL:https://only-testing-blog.blogspot.com/

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

Qntn 8:
----------
URL:https://www.google.com/

[Enter Selenium Web driver]

Qntn 9:
---------
URL:http://adactinhotelapp.com/

[Enter Email or Phone and Password]

Qntn 10:
----------
URL:https://www.selenium.dev/documentation/webdriver/elements/locator
s/

[Click about]

DAY 3
======

1.Why we go for xpath?


2.What are the types of xpath?
3.What is the syntax of xpath?
4.What is the syntax of xpath with index?
5.What is a diffrence b/w absolute and relative xpath?
6.How to pass the values to textboxes?
7.what is the method used to perform click?
8.What is known as Root element?

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

Qntn 1:
---------
URL : https://www.flipkart.com/

[Click Login and Entere Username password ]

Qntn 2:
---------
URL:https://www.saucedemo.com/

[Enter username and password and click Login]

Qntn 3:
----------
URL:https://petstore.swagger.io/

[Click Authorize and pass client id]

Qntn 4:
----------
URL:https://thinking-tester-contact-list.herokuapp.com/

[Click here--->Then]

Qntn 5:
--------
URL:https://demo.applitools.com/ --->Enter the username and password

Qntn 6:
---------
URL : https://www.cleartrip.com/trains-------------> Enter From ,TO
and click search trains

Qntn 7:
---------
URL : https://www.myntra.com/register?referer=https://www.myntra.com/
------------->Enter Mobile number and click continue

Qntn 8:
-----------
URL : http://toolsqa.com/automation-practice-form/----> Fill the
details and register the form.

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


index position
=====

Qntn 9:
--------
URL:https://www.facebook.com/ -----> Click create new account button
and Fill all the details

Qntn 10:
---------
URL:https://academy.ultimateqa.com/java-sdet -------> Fill the
details and Click Learn More

Qntn 11:
----------
URL:https://www.justdial.com/Chennai/E-Commerce-Service-
Providers/nct-11276455 -----> Click advertise and Fill the details

Day 4
=====

1.How will u find a text?


2.Tell me the syntax of text and contains?
3.How to print paragraph in a webpage?
4.What is a purpose of getText() method?
5.What is a return type of getText() method?
6.What is a purpose of getAttribute() method?
7.What is a return type of getAttribute() method?
8.How to get a user input?
9.In which interface getText() and getAttribute() methods are
presented ?
10.What is a purpose of debug?
PROGRAMS:
-----------------
Locate using Text

Qntn 1:
----------
URL:https://www.saucedemo.com/inventory.html ------------>Click any
product ,then add to the cart

Qntn 2:
---------
URL:https://compendiumdev.co.uk/ ------------------> Get the text
starts from Books published by...........

Qntn 3:
----------
URL:https://compendiumdev.co.uk/ ------------------> Click the
Software blog

Qntn 4
----------
URL:https://compendiumdev.co.uk/ ------------------> Print the
details of featured books

Qntn 5
---------
URL:https://thinking-tester-contact-list.herokuapp.com/------------
>Click here--->Then Click Contact List doc Environment---> Then No
Environment

Qntn 6
---------
URL : https://www.facebook.com/ -----------> Pass the values to email
and pwd.Print the user Inputs

Qntn 7
---------
URL:https://www.snapdeal.com/ -----------> Search HeadPhones and
click the fst product

Qntn 8
----------
URL: https://www.shopclues.com/wholesale.html ------------>Search
any product and click 1st product

NOTE: Locate using partial text


=====
Qntn 9
----------
URL:https://www.f6s.com/companies/e-commerce/india/tamil-
nadu/chennai/co-----> Print the paragraph starts from Desihands....

Qntn 10
-----------
URL:https://www.rakuten.com/ ------------> Print Stack Cash Back on
top of holiday sales

Day 5
=====

1.Is actions is a class or interface?


2.What is purpose of Actions Class?
3.What is the object creation syntax of Actions?
4.What are the methods available in actions class?
5.How to right click?
6.Which is mandatory method in actions?
7.What is a difference between build() and perform()?
8.Is is possible to achieve keyboard related operations in actions?
9.How to move your cursor?
10.Difference between actions and Robot?

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

Qntn 1
--------
URL:https://corp.rakuten.co.in/

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

Qntn 2
---------
URL:https://www.walmart.com/all-departments
[ Click Gift finder and move ur cursor to Electronics ]

Qntn 3
---------
URL:https://www.bwana.in/ecommerce-management.php

[ Move ur cursor to services and click Web Development ]

Qntn 4
---------
URL:https://www.globalsqa.com/demo-site/draganddrop/

[Drag the high tatras to Trash ]

Qntn 5
---------
URL:http://www.dhtmlgoodies.com/scripts/drag-drop-custom/demo-drag-
drop-3.html

[ Drag the capitals to its countries ]

Qntn 6
---------
URL:http://www.flipkart.com

[ Move ur cursor Home & Furniture then click bedsheets ]

Qntn 7
--------
URL:https://www.amazon.in/

[signin is a first mouseover then Click SD Cash ]

Qntn 8
----------
URL:https://www.shopclues.com/wholesale.html

[ Right click and click inspect ]

Qntn 9
----------
URL:https://www.google.co.in/

[ Enter ur name and Double click ]


Qntn 10
----------
URL:https://www.instagram.com/

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

DAY8
----
Alerts
Frames

QUESTIONS(Theory)
-----------------
1.What is an Alert?
2.What are the types of Alert?
3.Write a code to perform Alert?
4.What can we do to click Ok button in alert?
5.What can we do to click Cancel button in alert?
6.Whether alert is an interface or class?
7.What is mean by frames?
8.What are the arguments we pass on frames?
9.Write a code for switching the alert?
10.Write a code to switch frames?
11.What is the method switch the alert and frame?

QUESTIONS(Practical)
--------------------
QUESTION 1:
----------
URL :
https://www.way2automation.com/way2auto_jquery/alert.php#load_box

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

QUESTION 2
----------
URL : https://nxtgenaiacademy.com/alertandpopup/

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

QUESTION 3
----------
URL :
https://www.way2automation.com/way2auto_jquery/alert.php#load_box

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

QUESTION 4
----------
URL :
https://netbanking.hdfcbank.com/netbanking/?_ga=2.176378149.181988241
5.1533883212-608727520.1532670997

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

QUESTION 5
----------
URL : https://retail.onlinesbi.sbi/retail/login.htm
NOTE: Click Continue To Login and click Login without enter the user
id.

QUESTION 7
----------
URL : https://netbanking.hdfcbank.com/netbanking/

NOTE: Enter the userId,click continue.Enter password.

QUESTION 8
----------
URL :
https://infinity.icicibank.com/corp/AuthenticationController?FORMSGRO
UP_ID__=AuthenticationFG&__START_TRAN_FLAG__=Y&FG_BUTTONS__=LOAD&ACTI
ON.LOAD=Y&AuthenticationFG.LOGIN_FLAG=1&BANK_ID=ICI

NOTE: Enter the userId password.


Click login button

QUESTION 9
----------
URL : https://www.demoblaze.com/
NOTE: click Login without enter the user id & password.
DAY9:
-----
JavaScript

QUESTIONS(Theory)
------------------
1.What is mean by JavaScript?
2.Whether JavaScript is a class or Interface?
3.What method is used to get the font size of the WebElement in a
webpage?
4.What method is used to get the Color of the WebElement in a webpage?
5.Write a code to highlight the WebElement in a webpage?
6.Write a code to get the InnerText and Title of a webpage using
Javascript?
7.Write a code to perform scrollUp in a webpage using Javascript?
8.Write a code to perform scrolldown in a webpage using Javascript?
9.What is the method available to run the Javascript?
10.Write a code to click a button using JavaScript?
11.Write a code to insert a value in textBox using JavaScript?

QUESTIONS(Practical)
-------------------
QUESTION 1
-----------
URL : https://en.wikipedia.org/wiki/Software_testing

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

QUESTION 2
-----------
URL : http://toolsqa.com/

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


QUESTION 3
-----------
URL : https://www.snapdeal.com/login
NOTE: : Enter the mobile number and click continue button using
JavaScript.

QUESTION 4
-----------
URL : https://www.facebook.com/

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

QUESTION 5
-----------
URL : http://adactinhotelapp.com/

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

QUESTION 6
-----------
URL : https://www.flipkart.com/
NOTE: Enter the email & password and click login button using
JavaScript.
print the user entered input

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

URL : http://toolsqa.com/

NOTE: Scrolldown till "Recent Articles".

QUESTION 8
-----------
URL : http://toolsqa.com/

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

QUESTION 9
-----------
URL : https://blepworld.com

NOTE: Scroll Down till "Shop"

DAY10
----
Screenshot

QUESTIONS(Theory)
-----------------
1.How will you take a screenshot in selenium?
2.For what reason we have to take screenshot?
3.Whether TakesScreenshot is a class or interface?
4.In what place the screenShot will store in default?
5.Write a code to perform Screenshot?
6.Whether FileUtils is a class or interface?
7.Supoose we want to change the location of the Screenshot What can
we do?

QUESTION 1
----------
URL :https://www.youtube.com/
NOTE: Take screenshot of homepage.

QUESTION 2
------------
URL : https://www.flipkart.com/

NOTE: Search watch and take the screenshot.

QUESTION 3
-----------
URL : https://www.amazon.in/

NOTE: Search laptop and take the screenshot.


QUESTION 4
------------
URL : https://www.flipkart.com/

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

QUESTION 5
-----------
URL : https://www.flipkart.com/

NOTE: Mouse Over Kids & Baby and Take the screenshot

QUESTION 6
-----------
URL : https://www.snapdeal.com/

NOTE: search iphone 14 pro and take the screenshot .

QUESTION 7
------------
URL : https://www.myntra.com/

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

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

QUESTIONS(Theory)
-----------------
1.What is the purpose of DropDown?
2.How will you perform DropDown?
3.What are the methods available in Select class?
4.can we deselect the options in DropDown?
5.Write a code to print selected options in DropDown?
6.Write a code to deselect the selected options in DropDown?
7.What are the ways to select DropDown options?
8.Whether Select is a interface or class?
9.Write a code to print all the options in DropDown?
10.Can we select multiple values in DropDown?
11.How will select multiple values in DropDown?

QUESTIONS(Practical)
--------------------
QUESTION 1
----------
URL : https://www.globalsqa.com/demo-site/select-dropdown-menu/

NOTE: print all the even option in State

QUESTION 2
----------
URL : https://www.globalsqa.com/demo-site/select-dropdown-menu/
NOTE: print all the odd option in State

QUESTION 3
----------
URL : https://www.facebook.com/

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

QUESTION 4
----------
URL : https://www.facebook.com/

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

QUESTION 5
-----------
URL : https://www.facebook.com/

NOTE: print the even dates

QUESTION 6
-----------
URL : https://demo.automationtesting.in/Register.html
NOTE: print all the option of skills using getText() methods

QUESTION 7
-----------
URL : http://demo.guru99.com/test/newtours/register.php

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


Register Form

QUESTION 8
------------
URL : http://adactinhotelapp.com/

NOTE: Book room and print order no.

QUESTION 9
-----------
URL : http://adactinhotelapp.com/

NOTE: print all the option in Room Type available.

QUESTION 10
-----------
URL : http://adactinhotelapp.com/

NOTE: print all the option in Location available.

QUESTION 11
-----------
URL : http://adactin.com/HotelApp/

NOTE: print No of option available in Adults per Room

QUESTION 12
-----------
URL : https://demoqa.com/select-menu

NOTE: Select Even Option availble in Standard multi select


Find out number of option not selected

QUESTION 13
-----------
URL : http://output.jsbin.com/osebed/2

NOTE: Select All availble in fruits


Print first selected option

DAY12
--------
WebTable

QUESTIONS(Theory)
-----------------
1.What is mean by webtable?
2.What is the use of webtable?
3.Under which tags webtable is present in html?
4.Which tag is used to mention the table row and table data ?
5.Write a code to display all the Colum Name from the table?
6.Write a code to display all the data from the table?
7.If there are multiple tables available in webpage.How Will you
display the any specified particular webtable data?
8.Write a code to print the rows alone form the webtable?
9.Write a code to print all the data's from the webtable using
enhanced for loop?
10.Write a code to print the table headers from the WebTable?

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

QUESTION 1
----------
URL : https://cosmocode.io/automation-practice-webtable/
NOTE: Find out Number of rows available in webPage

QUESTION 2
----------
URL : https://cosmocode.io/automation-practice-webtable/
NOTE: Print all details available in 4th row webtable

QUESTION 3
----------
URL : https://demoqa.com/webtables

NOTE: Print Even rows available in 2 nd cell

QUESTION 4
----------
URL : http://demo.guru99.com/test/write-xpath-table.html

NOTE: Print all the content in the dymaic webtable.

QUESTION 5
----------
URL : http://demo.guru99.com/test/write-xpath-table.html

NOTE: Print all value in first row

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

QUESTIONS(Theroy)
-----------------
1.What is the purpose of windows Handling?
2.Write a code to perform windows Handling?
3.Which method is used to get parent window?
4.Which method is used to get child windows?
5.Write a code to switch from parent window to child window?
6.In which order the windows order will arrange?
7.Write a code to return to your parent window?
8.What is the return type of getWindowHandles()?
9.What is the return type of getWindowHandle()?
10.Write a code to switch to 7 th child window?
11.Write a code to switch to 5 th child window without using any for
loop?
12.Write a code to switch multiple windows?

QUESTIONS(Practical)
--------------------
QUESTION 1
----------
URL : https://www.amazon.com/

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

QUESTION 2
----------
URL : https://www.myntra.com/

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


print the you pay cost displayed.

QUESTION 3
----------
URL : https://www.snapdeal.com/

NOTE: Search watch and click 1st watch


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

QUESTION 4
----------
URL : https://www.homedepot.com/

NOTE: Search fan


click 1st fan and click the remote control included

QUESTION 5
----------
URL : https://www.snapdeal.com/

NOTE: Search hand sanitizer and click any hand sanitizer


add it to cart

QUESTION 6
----------
URL : https://www.flipkart.com/

NOTE: Search redmi phone and click any phone


print price amount
QUESTION 7
----------
URL : https://www.flipkart.com/

NOTE: Search mask and click any mask


Enter delivery pincode

QUESTION 8
----------
URL : https://www.flipkart.com/

NOTE: Search hp laptop and click 1st hp laptop


print cost of laptop

You might also like