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