TestTask  removed  to  page  object

Define  each  page  object  and  pre-defined  some  action  like  loginForm...

TestCase  will  call  the  corresponding  method  using  PageFactory  to  constructor.

For  better  changing  of  page  object,  we  define  that  object  as  parameter  in  testng.xml  and  delivery  to  method  of  TestCase.  Why  should  I  consider  for  that?  One  good  scenario  like  id  of  username  changed,  we  can  replace  another  page  object  without  code  change,  and  run  test.  And  of  course,  we  should  define  contract  meaning  interface  for  similar  page  object.