text: const alternativeProfileSelector = '.core-rail > *:first-child section >'
  
  module.exports = {
    profileLegacy: {
      selector: '.pv-content .pv-top-card-section',
      fields: {
        name: `.pv-top-card-section__name`,
        headline: `.pv-top-card-section__headline`,
        location: `.pv-top-card-section__location`,
        connections: `.pv-top-card-v2-section__connections`
      }
    },
    profileAlternative: {
      selector: '.pv-content',
      fields: {
        name: `${alternativeProfileSelector} div:last-child > div:last-child > div:first-child ul:first-child > li:first-child`,
        headline: `${alternativeProfileSelector} div:last-child h2`,
        location: `${alternativeProfileSelector} div:last-child > div:last-child > div:first-child ul:last-child > li:first-child`,
        connections: `${alternativeProfileSelector} div:last-child > div:last-child > div:first-child ul:last-child > li:nth-child(2)`
      }
    },
    aboutLegacy: {
      selector: '.pv-top-card-section__summary',
      fields: {
        text: '.pv-top-card-section__summary-text'
      }
    },
    aboutAlternative: {
      selector: '.pv-about-section',
      fields: {
        text: 'p'
      }
    },
    positions: {
      selector: 'section[id=experience-section] li.pv-profile-section',
      fields: {
        title: 'h3',
        companyName: 'span.pv-entity__secondary-title',
        location: 'pv-entity__location span:nth-child(2)',
        description: 'p[class~=pv-entity__description]',
        date1: 'h4.pv-entity__date-range span:nth-child(2)',
        date2: '.pv-entity__bullet-item-v2',
        roles: {
          selector: '.pv-entity__role-details',
          hasChildrenFields: true,
          fields: {
            title: 'h3 span:not(.visually-hidden)',
            date1: 'h4.pv-entity__date-range span:nth-child(2)',
            date2: '.pv-entity__bullet-item-v2',
            location: 'pv-entity__location span:nth-child(2)'
          }
        }
      }
    },
    educations: {
      selector: 'section[id=education-section] li',
      fields: {
        title: 'h3',
        degree: 'span[class=pv-entity__comma-item]',
        date1: 'p.pv-entity__dates time:nth-child(1)',
        date2: 'p.pv-entity__dates time:nth-child(2)'
      }
    },
    skills: {
      selector: '.pv-skill-category-entity__skill-wrapper',
      fields: {
        title: 'span.pv-skill-category-entity__name-text',
        count: 'span.pv-skill-category-entity__endorsement-count'
      }
    },
    recommendationsCount: {
      selector: '.recommendations-inlining',
      fields: {
        received: 'artdeco-tab:nth-child(1)',
        given: 'artdeco-tab:nth-child(2)'
      }
    },
    recommendationsReceived: {
      selector: 'artdeco-tabpanel[aria-hidden=false] li.pv-recommendation-entity',
      fields: {
        user: {
          selector: 'a.pv-recommendation-entity__member',
          attribute: 'href'
        },
        text: 'blockquote.pv-recommendation-entity__text'
      }
    },
    recommendationsGiven: {
      selector: 'artdeco-tabpanel[aria-hidden=true] li.pv-recommendation-entity',
      fields: {
        user: {
          selector: 'a.pv-recommendation-entity__member',
          attribute: 'href'
        },
        text: 'blockquote.pv-recommendation-entity__text'
      }
    },
    accomplishments: {
      selector: 'section.pv-accomplishments-section div.ember-view',
      fields: {
        count: 'h3.pv-accomplishments-block__count span:nth-child(2)',
        title: '.accomplishments-block__content h3.pv-accomplishments-block__title',
        items: {
          selector: 'li',
          isMultipleFields: true
        }
      }
    },
    peopleAlsoViewed: {
      selector: 'li.pv-browsemap-section__member-container',
      fields: {
        user: {
          selector: 'a',
          attribute: 'href'
        },
        text: 'p'
      }
    },
    volunteerExperience: {
      selector: 'section.volunteering-section li',
      fields: {
        title: 'h3',
        experience: 'span[class=pv-entity__secondary-title]',
        location: 'pv-entity__location span:nth-child(2)',
        description: '.pv-volunteer-causes',
        date1: 'h4.pv-entity__date-range span:nth-child(2)',
        date2: '.pv-entity__bullet-item'
      }
    }
  }
  