| 
 | 1 | +---  | 
 | 2 | +url:  | 
 | 3 | +  root: 'https://lms.iiitb.ac.in/moodle'  | 
 | 4 | +  login: "/login/index.php"  | 
 | 5 | +  home: "/my"  | 
 | 6 | + | 
 | 7 | +flags:  | 
 | 8 | +  allowInsecure: true  | 
 | 9 | + | 
 | 10 | +status:  | 
 | 11 | +  loggedOut: 'You are not logged in.'  | 
 | 12 | +  loggedIn: 'You are logged in as '  | 
 | 13 | + | 
 | 14 | +params:  | 
 | 15 | +  onlineTimeout: 3000  | 
 | 16 | + | 
 | 17 | +eventFlags:  | 
 | 18 | +  user:  | 
 | 19 | +    getCourses:  | 
 | 20 | +      success: { status: 'success', code: 0 }  | 
 | 21 | +      unknownError: { status: 'error', code: 1 }  | 
 | 22 | +  auth:  | 
 | 23 | +    login:  | 
 | 24 | +      success: { status: 'authenticated', code: 0 }  | 
 | 25 | +      invalidCreds: {status: 'invalidCredentials', code: 1}  | 
 | 26 | +      headerMismatch: { status: 'headerMismatch', code: 2 }  | 
 | 27 | +      cannotConnect: { status: 'cannotConnect', code: 3 }  | 
 | 28 | +      unknownError: { status: 'Error', error: null, code: 4 }  | 
 | 29 | + | 
 | 30 | +    isLoggedin:  | 
 | 31 | +      success: {  status: 'success', code: 0}  | 
 | 32 | +      cannotConnect: { status: 'cannotConnect', code: 1 }  | 
 | 33 | +      nullValue: { status: 'nullValue', error: 2 }  | 
 | 34 | +      unknownError: { status: 'Error', code: 3 }  | 
 | 35 | + | 
 | 36 | +  course:  | 
 | 37 | +    forum:  | 
 | 38 | +      success: { status: 'success', code: 0 }  | 
 | 39 | +      noForum: { status: 'noForum', code: 1 }  | 
 | 40 | +      cannotConnect: { status: 'cannotConnect', code: 2 }  | 
 | 41 | +      unknownError: { status: 'Error', code: 3 }  | 
 | 42 | + | 
 | 43 | +    activity:  | 
 | 44 | +      success: { status: 'success', code: 0 }  | 
 | 45 | +      noActivity: { status: 'noActivity', code: 1 }  | 
 | 46 | +      cannotConnect: { status: 'cannotConnect', code: 2 }  | 
 | 47 | +      unknownError: { status: 'Error', code: 3 }  | 
 | 48 | + | 
 | 49 | +    material:  | 
 | 50 | +      success: { status: 'success', code: 0 }  | 
 | 51 | +      noMaterial: { status: 'noMaterial', code: 1 }  | 
 | 52 | +      cannotConnect: { status: 'cannotConnect', code: 2 }  | 
 | 53 | +      unknownError: { status: 'Error', code: 3 }  | 
 | 54 | + | 
 | 55 | +selector:  | 
 | 56 | +  site:  | 
 | 57 | +    pageTitle: ".headermenu"  | 
 | 58 | +    userStatus: ".logininfo"  | 
 | 59 | +    loggedOut: 'You are not logged in.'  | 
 | 60 | +    loggedIn: 'You are logged in as '  | 
 | 61 | + | 
 | 62 | +  user:  | 
 | 63 | +    privateFiles:  | 
 | 64 | +      selector: div[id^="private_files_tree_"]  | 
 | 65 | +      link: a @href  | 
 | 66 | +      name: a  | 
 | 67 | + | 
 | 68 | +    courseList:  | 
 | 69 | +      selector: "#page-content"  | 
 | 70 | +      link: ".corner-box .content .course_list h2 @href"  | 
 | 71 | +      name: ".corner-box .content .course_list h2"  | 
 | 72 | + | 
 | 73 | +  course:  | 
 | 74 | +    activity:  | 
 | 75 | +      activity: "#section-2"  | 
 | 76 | +      summary: "div.content > div > div > p"  | 
 | 77 | +      link: ".modtype_assign > div > div > div:nth-child(2) > div.activityinstance > a @href"  | 
 | 78 | +      name: ".modtype_assign > div > div > div:nth-child(2) > div.activityinstance > a"  | 
 | 79 | +      desc: ".modtype_assign > div > div > div:nth-child(2) > div.contentafterlink > div > div > p"  | 
 | 80 | +        | 
 | 81 | +    forum:  | 
 | 82 | +      forum: "#section-0"  | 
 | 83 | +      link: ".modtype_forum > div > div > div:nth-child(2) > div > a @href"  | 
 | 84 | +      name: ".modtype_forum > div > div > div:nth-child(2) > div > a"  | 
 | 85 | +        | 
 | 86 | + | 
 | 87 | +    material:  | 
 | 88 | +      material: "#section-1"  | 
 | 89 | +      summary: ".summary"  | 
 | 90 | +      link: ".modtype_folder a @href"  | 
 | 91 | +      name: ".modtype_folder a"  | 
 | 92 | +      desc: ".contentafterlink p"  | 
 | 93 | + | 
0 commit comments