Selenium Assignment – 1

July 18, 2016

Here is the first assignment of this series of real-time scenario’s, to practice Selenium  from QA Tech hub. This assignment mainly focusses on  how to invoke firefox browser, maximizing the window, navigate commands etc.

Note: If you are very new to selenium, go through Environment setup for Selenium WebDriver  and other articles before starting.

Scenario:

  1.  Open Firefox Browser.
  2. Maximize the browser window.
  3. Navigate to “http://www.qatechhub.com”.
  4. Write a method to print PASS if the title of the page matches with “Qa Tech Hub – keep Learning…” else FAIL
  5. Navigate to http://www.facebook.com
  6. Navigate back.
  7. Print the URL of the current page.
  8. Navigate forward.
  9. Reload the page.
  10. Close the Browser.

Try this code. Send us the code for feedback and assessment, or if you have any questions, queries or comments. Feel free to write us support@qatechhub.comWe will be back soon with next assignment.

Till then, Keep Learning 🙂

Saurabh

About the Author

Saurabh

Follow Saurabh:

Leave a Comment: