APOGEN: automatic page object generator for web testing