Skip to content

Instantly share code, notes, and snippets.

@anthonyjdella
Created March 21, 2018 01:38
Show Gist options
  • Select an option

  • Save anthonyjdella/0cba29a71a48903c00cc5e872cde4ad6 to your computer and use it in GitHub Desktop.

Select an option

Save anthonyjdella/0cba29a71a48903c00cc5e872cde4ad6 to your computer and use it in GitHub Desktop.
module.exports = Object.freeze({
STATE_FARM_URI : "https://statefarm.csod.com/ats/careersite/search.aspx?site=1&c=statefarm",
STATE_FARM_LOC_DRPDWN : "#ctl00_siteContent_widgetLayout_rptWidgets_ctl03_widgetContainer_ctl00_rptCustomFields_ctl02_customFieldWrapper > button",
STATE_FARM_TX_RD_BTN : "body > div > ul > li:nth-child(46) > label > span",
STATE_FARM_SRCH_FRM : "#ctl00_siteContent_widgetLayout_rptWidgets_ctl03_widgetContainer_ctl00_rptCustomFields_ctl00_customFieldWrapper_ctl00_txtValue",
STATE_FARM_SRCH_TECH : "technology",
STATE_FARM_SUBMIT_BTN : "#ctl00_siteContent_widgetLayout_rptWidgets_ctl03_widgetContainer_ctl00_btnSearch",
SUCCESS_STMT : "File successfully written! - Check your project directory for the state-farm-jobs.txt file",
STATE_FARM_JOB_SELECTOR : "#ctl00_siteContent_widgetLayout_rptWidgets_ctl03_widgetContainer_ctl00_ctl00 > ul > li:nth-child(INDEX)",
STATE_FARM_JOB_SELECTOR_ID : "ctl00_siteContent_widgetLayout_rptWidgets_ctl03_widgetContainer_ctl00_ctl00",
RESULTS_TITLE : "State Farm Jobs in Texas for Technology\n",
STATE_FARM_NEXT_PAGE_SELECTOR : "#ctl00_siteContent_widgetLayout_rptWidgets_ctl03_widgetContainer_ctl00_pgrList_nextPageLink",
STATE_FARM_PAGE_CONTAINTER_SELECTOR : '#ctl00_siteContent_widgetLayout_rptWidgets_ctl03_widgetContainer_ctl00_ctl00 > div.results-paging'
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment