Skip to content

mate-academy/qa_page_object

Repository files navigation

Page Object basics

Read the guideline before start

Let's implement 3 classes with inheritance.

Header

  • should contain getter property logo which return 'Conduit logo' string.

PageObject

  • constructor takes url and and assign it to url property
  • constructor contains header property which is an instance of Header class
  • should contain clickOnLogo method. The method should return a string 'Click on the' + logo from the Header class

ArticlePage

  • constructor taskes url and slug. Constructor should modify original url by adding slug at the end
  • should contain getter property commentButton which return '[Publish comment] button' string
  • should contain clickOnCommentButton method. The method should return a string 'Click on the' + commentButton
  • should contain assertPageOpened method. The method should return a string 'The ' + url + 'is opened`

The methods commentButton, clickOnLogo, clickOnCommentButton, and assertPageOpened are placeholders and do not require a real-world implementation for this task.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published