Automate some scenarios using Pagefactory