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

export default class UlComponent extends Component {
    /**
    * Expects the parent element and an xpath selector (without the leading slashes)
    * @param parent WebdriverIO.Element
    */
    constructor(parent, selector) {
        if (selector) {
            super(parent, selector);
        } else {
            super(parent, 'ul');
        }
    }
    
    get liComponent() {
        return new LiComponent(this);
    }
}
