code for snapshot management

code for snapshot management. work in progress
Locators shouldn't be inside functions like this if they are page related.