import Component from '../../component.js'

export default class CoUxAmarker extends Component {
    constructor(parent) {
      let selector = 'ux-a-marker';
      super(parent, selector);
      //https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components/src/lib/ux-components/atomic/ux-a-marker/ux-a-marker.component.html?at=support/10.x
    }
    get markerDataDiv() {
      const path = '//div[@data-e2e="ux-a-marker"]';
      return this.currentPath + path;
    }
    get icon() {
      const path = '//span[contains(@class,"ux-icon-circle") and contains(@class,"ux-a-marker__icon")]';
      return this.markerDataDiv + path;
    }
    async typeClass() {
      return await (await $(this.currentPath)).getAttribute('typeclass');
    }
}


