{"action":"closed","issue":{"url":"https://api.github.com/repos/cheezy/page-object/issues/340","labels_url":"https://api.github.com/repos/cheezy/page-object/issues/340/labels{/name}","comments_url":"https://api.github.com/repos/cheezy/page-object/issues/340/comments","events_url":"https://api.github.com/repos/cheezy/page-object/issues/340/events","html_url":"https://github.com/cheezy/page-object/issues/340","id":113656027,"number":340,"title":"Ability to change page class from page ","user":{"login":"vveliev","id":5420655,"avatar_url":"https://avatars.githubusercontent.com/u/5420655?v=3","gravatar_id":"","url":"https://api.github.com/users/vveliev","html_url":"https://github.com/vveliev","followers_url":"https://api.github.com/users/vveliev/followers","following_url":"https://api.github.com/users/vveliev/following{/other_user}","gists_url":"https://api.github.com/users/vveliev/gists{/gist_id}","starred_url":"https://api.github.com/users/vveliev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vveliev/subscriptions","organizations_url":"https://api.github.com/users/vveliev/orgs","repos_url":"https://api.github.com/users/vveliev/repos","events_url":"https://api.github.com/users/vveliev/events{/privacy}","received_events_url":"https://api.github.com/users/vveliev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-27T18:53:25Z","updated_at":"2015-10-28T13:51:15Z","closed_at":"2015-10-28T13:51:15Z","body":"I'm not aware of any options right now, to change page class, right after .click from page itself. \r\n\r\nI think it will be very useful to have ability changing page class, from page_object.\r\n\r\nEx. \r\n```rb \r\nclass SimplePage\r\n  include PageObject\r\n  button(:login_bt, id: 'button_id')\r\n  .\r\n  .\r\n  .\r\n  def login(data={})\r\n    .\r\n    .\r\n    .\r\n    self.login_bt\r\n    page_class(SamplePage2)\r\n  end\r\nend\r\n``` \r\n\r\nThanks"}}