NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io



this.base_url = 'https://banweb.gwu.edu/PRODCartridge';

this.dar_url = 'https://degreemap.gwu.edu/worksheets';

this.ellucianSSB = new EllucianSSB(this.session_id);
this.ellucianSSB.base_url = 'https://bssoweb.gwu.edu:8003/StudentSelfService';

* dar : https://piperline.hamline.edu/pls/prod/bwckcapp.P_DispCurrent
* grade : https://piperline.hamline.edu/pls/prod/bwskogrd.P_ViewTermGrde
* transcript : https://piperline.hamline.edu/pls/prod/bwskotrn.P_ViewTermTran
* gsr : https://piperline.hamline.edu/pls/prod/bwskgrad.p_view_gradapp
* profile : https://piperline.hamline.edu/pls/prod/bwskgstu.P_StuInfo
*/

/twbkwbis.P_GenMenu?name=bmenu.P_MainMnu

async navigate_to_ssb_main_menu(element, page, type) {
logger.info('SSB -> navigate_to_ssb_main_menu - started');

const elements = ['input[value="Go"], input[name="KEYWRD_IN"]'];
const errRegexList = ['This page is not enabled', 'This page is not enabled for current user role'];
const main_menu_url = this.main_menu_url || this.base_url + '/twbkwbis.P_GenMenu?name=bmenu.P_MainMnu';
// /twbkwbis.P_GenMenu?name=bmenu.P_AdminMnu

await this.ph.goto(main_menu_url, page, ['load'], 30000);

try { //Sometimes execution context is destroying
await this.ph.waitForSelector(elements[0], page);
} catch (e) {
logger.warn(e);
}

if (!await this.chk_main_menu_page(page)) {
logger.debug(await this.ph.getErrorText(page));
throw Controller.getError('general', 'internalError', 'Error in navigating to SSB Main Menu page');
}

if (await this.ph.searchError(errRegexList, page)) {
logger.warn(await this.ph.getErrorText(page));
throw Controller.getError('general', 'notAvailable', type);
}

return await this.chk_search_based_navigation(element, page, type);
}

async chk_search_based_navigation(element, page, type) {
logger.debug('SSB -> chk_search_based_navigation - started');

const action_elements = ['a[title*="Student Information"],a[title*="Student Record"],input[value="Go"]', 'a[title*="Academic Transcript"],input[value="Go"],a[title*="Unofficial Transcript"]', 'a[title*="Final Grades"],input[value="Go"]', 'a[title*="Degree Evaluation"],input[value="Go"]', 'a[title*="Graduation Applications"],a[title*="View Application To Graduate"],input[value="Go"]'];
let action_element = null;
let search_text = '';

if (type === ACADEMIC_ITEM_TYPE.academic_profile) {
search_text = 'student information';
action_element = action_elements[0];
}

if (type === ACADEMIC_ITEM_TYPE.transcript) {
search_text = 'academic transcript';
action_element = action_elements[1];
}

if (type === ACADEMIC_ITEM_TYPE.grade_report) {
search_text = 'final grades';
action_element = action_elements[2];
}

if (type === ACADEMIC_ITEM_TYPE.degree_audit_report) {
search_text = 'degree evaluation';
action_element = action_elements[3];
}

if (type === ACADEMIC_ITEM_TYPE.graduation_status_report) {
search_text = 'view application to graduate';
action_element = action_elements[4];
}

try {
page = await this.perform_search(search_text, page);
await this.ph.waitFor(3000);
await this.ph.waitForSelector(action_element, page);
await this.ph.performClick(action_element, page);
await Promise.race([this.ph.waitForNavigation(page), this.ph.waitFor(10000)]);
} catch (e) {
logger.warn(e);
}

page = await this.chk_hidden_element_navigation(element, page);

return page;
}

async chk_hidden_element_navigation(search_element, page) {
logger.debug('SSB -> chk_hidden_element_navigation - started');

try {
await this.ph.waitForSelector(search_element, page, {
visible: true,
timeout: 15000
});
await this.ph.performClickAndNavigation(search_element, page);
return page;
} catch (e) {
logger.warn(e);
}

try {
await this.ph.waitForSelector(search_element, page, {
visible: false,
timeout: 2000
});
await this.ph.performHiddenClickAndNavigation(search_element, page);
return page;
} catch (e) {
logger.warn(e);
}

return page;
}

async perform_search(search_text, page) {
logger.debug('SSB -> perform_search - started');

const search_elements = ['input[value*="Find a page"]', 'input[name="KEYWRD_IN"],input[id="keyword_in_id"]'];

try {
await this.ph.waitForSelector(search_elements[0], page, {
timeout: 3000
});
await this.ph.fillElementValue(search_elements[0], search_text, page);
return page;
} catch (e) {
logger.warn(e);
}

try {
await this.ph.waitForSelector(search_elements[1], page, {
timeout: 3000
});
await this.ph.fillElementValue(search_elements[1], search_text, page);
return page;
} catch (e) {
logger.warn(e);
}

return page;
}
     
 
what is notes.io
 

Notes is a web-based application for online 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 14 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.