| 8 | import page.base.SalesforceHooks; |
| 9 | |
| 10 | public class UsersPage extends SalesforceHooks{ |
| 11 | |
| 12 | public UsersPage typeFirstName() { |
| 13 | typeInputInFrame("First Name", FakerDataFactory.getFirstName()); |
| 14 | return this; |
| 15 | } |
| 16 | |
| 17 | public UsersPage typeLastName() { |
| 18 | typeInputInFrame("Last Name", FakerDataFactory.getLastName()); |
| 19 | return this; |
| 20 | } |
| 21 | |
| 22 | public UsersPage typeEmail() { |
| 23 | typeInputInFrame("Email", TempMailer.getEmailAddress()); |
| 24 | return this; |
| 25 | } |
| 26 | |
| 27 | public UsersPage chooseProfile() { |
| 28 | selectByIndexInFrame("#Profile", -1, "Profile"); |
| 29 | return this; |
| 30 | } |
| 31 | |
| 32 | public UsersPage clickNewUser() { |
| 33 | frameLocator.set(getPage().frameLocator("(//iframe)[1]")); |
| 34 | clickInFrame("(//input[@title='New User'])[1]", "New User"); |
| 35 | return this; |
| 36 | } |
| 37 | |
| 38 | public UsersPage verifyMandatoryFields(List<String> labels) { |
| 39 | for (int i = 0; i < labels.size(); i++) { |
| 40 | verifyMandatoryInFrame(labels.get(i)); |
| 41 | } |
| 42 | return this; |
| 43 | } |
| 44 | |
| 45 | public UsersPage clickSave() { |
| 46 | clickInFrame("(//input[@name='save'])[1]", "Save"); |
| 47 | return this; |
| 48 | } |
| 49 | |
| 50 | |
| 51 | } |
nothing calls this directly
no outgoing calls
no test coverage detected