def xpath(selector): return bys.by_xpath(selector)
def parent(self): return SElement(by_xpath("..")).within(self) # todo: this should be covered with test especially
def test_by_xpath(): assert by_xpath("//a") == ('xpath', "//a")
def xpath(selector): return bys.by_xpath(selector)
def parent(self): return SElement(by_xpath("..")).within(self) # todo: this should be covered with test especially
def test_by_xpath(): assert by_xpath("//a") == ('xpath', "//a")