Skip to content

WesafEnginer/qa_page_object

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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`

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%