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