You are on page 1of 5

Practice Test case:-

Demo Scenario to Automate:----Done.


 Launch the Firefox browser
 Open website “www.Store.DemoQA.com”
 Print a Message to display that the website is
opened successfully
 Wait for 5 Seconds
 Close the Browser

Practice Exercise – 1-----Done


1.Launch a new Firefox browser.
2.Open Store.DemoQA.com
3.Get Page Title name and Title length
4.Print Page Title and Title length on the Eclipse
Console.
5.Get Page URL and verify if the it is a correct page
opened
6.Get Page Source (HTML Source code) and Page
Source length
7.Print Page Length on Eclipse Console.
8.Close the Browser.

Practice Exercise – 2---Done


1.Launch a new Firefox browser.
2.Open http://demoqa.com/frames-and-windows/
3.Use this statement to click on a New Window
button
“driver.findElement(By.xpath(“.//*[@id=’tabs-
1′]/div/p/a”)).click();”
4.Close the browser using close() command

Practice Exercise-3---Done
1.Launch new Browser
2.Open DemoQA.com website
3.Click on Registration link using
“driver.findElement(By.xpath(“.//*[@id=’menu-
item-374′]/a”)).click();“
4.Come back to Home page (Use ‘Back’ command)
5.Again go back to Registration page (This time use
‘Forward’ command)
6.Again come back to Home page (This time use
‘To’ command)
7.Refresh the Browser (Use ‘Refresh’ command)
8.Close the Browser

Practice Exercise 4---Done


1.Launch new Browser
2.Open URL
http://toolsqa.wpengine.com/automation-
practice-form/
3.Type Name & Last Name (Use Name locator)
4.Click on Submit button (Use ID locator)
Practice Exercise 5----Done
1.Launch new Browser
2.Open URL
http://toolsqa.wpengine.com/automation-
practice-form/
3.Click on the Link “Partial Link Test” (Use
‘patialLinkTest’ locator and search by ‘Partial’
word)
4.Identify Submit button with ‘tagName’, convert it
in to string and print it on the console
5.Click on the Link “Link Test” (Use ‘linkTest’
locator)

Practice Exercise 6--Done


1.Launch new Browser
2.Open
“http://toolsqa.wpengine.com/automation-
practice-form/“
3.Challenge One – Select the deselected Radio
button (female) for category Sex (Use IsSelected
method)
4.Challenge Two – Select the Third radio button for
category ‘Years of Exp’ (Use Id attribute to select
Radio button)
5.Challenge Three – Check the Check Box
‘Automation Tester’ for category ‘Profession'( Use
Value attribute to match the selection)
6.Challenge Four – Check the Check Box ‘Selenium
IDE’ for category ‘Automation Tool’ (Use
cssSelector)

Practice Exercise -7 (Drop Down Box/List)---Done


1.Launch new Browser
2.Open “http://toolsqa.wpengine.com/automation-
practice-form/”
3.Select ‘Continents’ Drop down ( Use Id to identify
the element )
4.Select option ‘Europe’ (Use selectByIndex)
5.Select option ‘Africa’ now (Use
selectByVisibleText)
6.Print all the options for the selected drop down
and select one option of your choice
7.Close the browser

Practice Exercise -8 (Multiple Selection Box/List)


1.Launch new Browser
2.Open “http://toolsqa.wpengine.com/automation-
practice-form/”
3.Select ‘Selenium Commands’ Multiple selection
box ( Use Name locator to identify the element )
4.Select option ‘Browser Commands’ and then
deselect it (Use selectByIndex and
deselectByIndex)
5.Select option ‘Navigation Commands’ and then
deselect it (Use selectByVisibleText and
deselectByVisibleText)
6.Print and select all the options for the selected
Multiple selection list.
7.Deselect all options
8.Close the browser

Practice Exercise 9
1.Launch new Browser
2.Open URL
“http://toolsqa.wpengine.com/automation-
practice-table/”
3.Get the value from cell ‘Dubai’ and print it on the
console
4.Click on the link ‘Detail’ of the first row and last
column

Practice Exercise 10
1.Launch new Browser
2.Open URL
“http://toolsqa.wpengine.com/automation-
practice-table/”
3.Get the value from cell ‘Dubai’ with using
dynamic xpath
4.Print all the column values of row ‘Clock Tower
Hotel’

You might also like