Document login click workaround