NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io




SA_LEARNER_SERVICES.SSS_TSRQST_UNOFF.GBL

async nav_grade_report_type1(page) {

logger.debug('OraclePeoplesoft -> nav_grade_report_type1 - started');

let elements = ['input[type="radio"]', '#DERIVED_SSS_SCT_SSS_TERM_LINK', 'SSR_SSENRL_GRADE.GBL', '#DERIVED_REGFRM1_SS_TRANSACT_TITLE'];

page.grade_report_url = this.grade_report_url || this.base_url + "/SA_LEARNER_SERVICES.SSR_SSENRL_GRADE.GBL";

let errRegexList = ['You have no access to grades', 'You have a hold on your records', 'Service Temporarily Unavailable', 'You have a hold on your record', 'You are not authorized', 'No matching values were found'];

// Go to grade page
await this.custom_goto(page.grade_report_url, page, ['load'], 20000, SUPPORTED_ITEM_TYPE.grade_report);

//wait for View My Grades
try {
await this.ph.waitForSelector(elements[3], page);
} catch (err) {
logger.debug(err);
}

if (await super.is_item_on_hold(page, ['You have a hold on your records', 'You have a hold on your record', 'A hold has been placed on your records'])) {
this.session.grade_on_hold = true;
return page;
}

let is_error = await this.ph.searchError(errRegexList, page);

if (is_error) {

logger.warn(await this.ph.getErrorText(page));

throw Controller.getError('general', 'notAvailable', SUPPORTED_ITEM_TYPE.grade_report);

}

//Go back to main page if "Change term" exists
if (await this.ph.isElementExist(elements[1], page)) {

logger.debug('first term open by default');

await this.ph.waitForSelector(elements[1], page);

await this.ph.performClick(elements[1], page);

await Promise.race([this.ph.waitForResponse(elements[2], page, 'end'), this.ph.waitFor(20000)]);

try {
await this.ph.waitForSelector(elements[0], page);
} catch (e) {
logger.debug(e);
}
}

//If 'Radio button' exists
if (await this.ph.isElementExist(elements[0], page)) {
this.multipleGradeReports = true;

page.termOptions = await this.getTermOptions(elements[0], page);

if (page.termOptions.length == 0) {
throw Controller.getError('general', 'notAvailable', SUPPORTED_ITEM_TYPE.grade_report);
}

if (page.termOptions.length == 1) {
this.multipleGradeReports = false;
}

//goto single term content
page = await this.nav_to_first_term(page);

try { // sometimes frame is present so need to redirect to frame url.
await this.ph.waitForSelector("iframe[name='TargetContent']", page);
const frame_url = await page.evaluate(element_id => document.querySelector(element_id).getAttribute('src'), 'iframe[name="TargetContent"]');
await this.ph.goto(frame_url, page, ['load'], 20000);

} catch (e) {
logger.warn(e);
}


try {
await this.ph.waitForSelector(elements[1], page);
} catch (e) {
logger.warn(e);

if (await super.is_item_on_hold(page, ['You have a hold on your records', 'You have a hold on your record', 'A hold has been placed on your records'])) {
this.session.grade_on_hold = true;
return page;
}
}

let is_error = await this.ph.searchError(errRegexList, page);
if (is_error) {
throw Controller.getError('general', 'notAvailable', SUPPORTED_ITEM_TYPE.grade_report);
}


return page;
}

//Wait for View Grades
await this.ph.waitForSelector(elements[3], page);

return page;
}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.